Skip to content

Commit

Permalink
Fixed meta (#525)
Browse files Browse the repository at this point in the history
  • Loading branch information
boxadesign authored Jul 10, 2019
1 parent 88a0142 commit 58bca76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/components/header/examples/census/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ layout: none
{% set page = {
"title": "Census 2021",
"theme": "census",
"absoluteUrl": pageInfo.url,
"headMeta": {
"description": "Census 2021 is a UK wide population survey."
},
Expand Down
6 changes: 3 additions & 3 deletions src/styles/page-template/_template.njk
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@
{% if page.headMeta %}
<meta property="og:description" content="{{ page.headMeta.description }}">
<meta property="og:title" content="{{ page.title }}">
<meta property="og:url" content="{{ pageInfo.url }}">
<meta property="og:url" content="{{ page.absoluteUrl }}">
<meta property="og:type" content="article">
<meta property="og:site_name" content="{{ page.header.title | default(page.title) }}">
<meta property="og:image" content="{{ page.header.titleLogo | default(page.header.logo) }}">
<meta property="og:image" content="{{ assetsURL }}{{ page.header.titleLogo | default(page.header.logo) }}">
<meta name="twitter:card" content="summary">
<meta name="description" content="{{ page.headMeta.description }}">
<link rel="canonical" href="{{ page.headMeta.canonicalUrl | default(pageInfo.url) }}">
<link rel="canonical" href="{{ page.headMeta.canonicalUrl | default(page.absoluteUrl) }}">
{% endif %}
{% block headIcons %}
<meta name="msapplication-config" content="{{ assetsURL }}/favicons/browserconfig.json">
Expand Down

0 comments on commit 58bca76

Please sign in to comment.