Skip to content

Commit

Permalink
Added params for css path and updated docs (#341)
Browse files Browse the repository at this point in the history
  • Loading branch information
boxadesign authored May 1, 2019
1 parent 660d27b commit 33d62a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/styles/page-template/_template.njk
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ page_title }}</title>
<link rel="stylesheet" href="{{ assetsURL }}/css/main.css">
<link rel="stylesheet" href="{{ assetsURL }}/css/{{ page.theme | default('main') }}.css">

{% block headIcons %}
<meta name="msapplication-config" content="{{ assetsURL }}/favicons/browserconfig.json">
Expand Down
1 change: 1 addition & 0 deletions src/styles/page-template/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ Variables can be set with:
| ------------- | --------------------------------------------------- | ----------------------------- | -------------------------------------------------------------------------------------------- |
| cdn | string | false | What CDN version to use |
| assetsURL | string | false | The base url where to find CSS/JS/images etc. e.g. `http://localhost:3030` |
| theme | string | false | The name of the css file e.g. "census" if using a theme. Defaults to "main". |
| title | string | true | The contents for the `<title>` element |
| bodyClasses | string | false | Classes to add to the `<body>` element |
| header | `PageHeader` [_(ref)_](#pageheader) | true | Configuration for the page header |
Expand Down

0 comments on commit 33d62a4

Please sign in to comment.