Skip to content

Commit

Permalink
Fix versioning for logos (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
bameyrick authored Feb 11, 2019
1 parent 56ac6d5 commit 484357b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/footer/_template.njk
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
{% endif %}
<div class="grid__col">
<div class="footer__license footer__license--border">
<img alt="OGL" alt="OGL" class="footer__ogl-img" src="{{ '/' + data.version if data.version }}/img/UKOpenGovernmentLicence-grey.svg">{{ params.OGLLink.pre}} <a href="{{ params.OGLLink.url }}" class="footer__link">{{ params.OGLLink.link }}</a>{{ params.OGLLink.post }}
<img alt="OGL" alt="OGL" class="footer__ogl-img" src="{{ '/' + params.version if params.version }}/img/UKOpenGovernmentLicence-grey.svg">{{ params.OGLLink.pre}} <a href="{{ params.OGLLink.url }}" class="footer__link">{{ params.OGLLink.link }}</a>{{ params.OGLLink.post }}
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/header/_template.njk
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<div class="grid__col col-auto">
<div class="logo">
<a href="{{ params.logoHref | default('/') }}">
<img src="{{ '/' + data.version if data.version }}/img/ons-logo-pos.svg" alt="Office for National Statistics logo" class="logo__img header__logo print__hidden">
<img src="{{ '/' + params.version if params.version }}/img/ons-logo-pos.svg" alt="Office for National Statistics logo" class="logo__img header__logo print__hidden">
</a>
</div>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/styles/page-template/_template.njk
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
{% block header %}
{{
onsHeader({
"version": data.version,
"title": page.title,
"language": page.language
})
Expand All @@ -55,6 +56,7 @@
{% block footer %}
{{
onsFooter({
"version": data.version,
"classes": "page__footer u-mt-xl u-pt-l",
"language": page.language,
"rows": page.footer.rows,
Expand Down

0 comments on commit 484357b

Please sign in to comment.