Skip to content

Commit b05c868

Browse files
committed
Always output canonical
1 parent 1a213f6 commit b05c868

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/partials/head-info.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
{{#unless (ne page.attributes.no-canonical undefined)}}
21
{{#if page.canonicalUrl}}
32
{{#with page.canonicalUrl}}
43
<link rel="canonical" href="{{{this}}}">
54
{{/with}}
65
{{else}}
76
<link rel="canonical" href="https://neo4j.com{{{ page.attributes.canonical-root }}}{{ page.url }}">
87
{{/if}}
9-
{{/unless}}
8+
109
{{#unless (eq page.attributes.pagination undefined)}}
1110
{{#with page.previous}}
1211
<link rel="prev" href="{{{relativize ./url}}}">
@@ -15,6 +14,7 @@
1514
<link rel="next" href="{{{relativize ./url}}}">
1615
{{/with}}
1716
{{/unless}}
17+
1818
{{#with page.description}}
1919
<meta name="description" content="{{this}}">
2020
{{/with}}

0 commit comments

Comments
 (0)