Skip to content

Commit

Permalink
Allow header logo url to be set from page variable (#387)
Browse files Browse the repository at this point in the history
  • Loading branch information
bameyrick authored May 22, 2019
1 parent fa074b7 commit 76d5695
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/styles/page-template/_template.njk
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@
"navigation": page.navigation,
"phase": page.phase,
"assetsURL": assetsURL,
"serviceLinks": page.serviceLinks
"serviceLinks": page.serviceLinks,
"logoHref": page.header.logoHref
})
}}
{% endblock %}
Expand Down
7 changes: 4 additions & 3 deletions src/styles/page-template/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,10 @@ Variables can be set with:
###### PageHeader

{% md %}
| Variable Name | Type | Required | Description |
| ------------- | ------ | -------- | ----------------------------------------------------------------------------- |
| title | string | false | Title for the page header. If not specified this will default to `page.title` |
| Variable Name | Type | Required | Description |
| ------------- | ------ | -------- | -------------------------------------------------------------------------------------- |
| title | string | false | Title for the page header. If not specified this will default to `page.title` |
| logoHref | string | false | URL for the page header logo. If not specified the image will not be wrapped in a link |
{% endmd %}

###### PageFooter
Expand Down

0 comments on commit 76d5695

Please sign in to comment.