Skip to content

Commit

Permalink
Move organisationName config
Browse files Browse the repository at this point in the history
Moves the organisationName config option out from the `header` config option to be a top-level config option.

This is now only used in the title tag.
  • Loading branch information
frankieroberto committed Jul 23, 2024
1 parent 6f58ed4 commit f117610
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion layouts/base.njk
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@
{{- title if title -}}
{{- " (page " + pageNumber + " of " + pageCount + ")" if pageCount > 1 -}}
{{- " - " + options.header.productName if options.header.productName -}}
{{- " - " + options.header.organisationName -}}
{%- if options.organisationName or options.header.organisationName %}
{{- " - " + (options.organisationName if options.organisationName else options.header.organisationName) -}}
{%- endif %}
{% endblock %}

{% block header %}
Expand Down
3 changes: 2 additions & 1 deletion lib/data/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ const defaultOptions = {
copyright: 'crown', // Crown copyright
licence: 'ogl' // Open Government Licence v3.0
},
organisationName: 'GOV.UK',
header: {
homepageUrl: '/',
organisationLogo: 'crown',
organisationName: 'GOV.UK',
organisationName: 'GOV.UK', // Deprecated: to be removed
productName: false
},
homeKey: 'Home',
Expand Down

0 comments on commit f117610

Please sign in to comment.