Skip to content

Commit e774df6

Browse files
committed
add canonical link to all pages for which page.canonicalUrl is set
1 parent 8cb2edf commit e774df6

File tree

4 files changed

+3
-9
lines changed

4 files changed

+3
-9
lines changed

src/layouts/default.hbs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
<head>
44
{{> head-first}}
55
<title>{{{detag (or page.title 'Untitled')}}}{{#with site.title}} | {{this}}{{/with}}</title>
6-
{{#with page.canonicalUrl}}
7-
<link rel="canonical" href="{{this}}">
8-
{{/with}}
96
{{> head-last}}
107
</head>
118
<body class="article">

src/layouts/home.hbs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
<head>
44
{{> head-first}}
55
<title>Couchbase Documentation</title>
6-
{{#with page.canonicalUrl}}
7-
<link rel="canonical" href="{{this}}">
8-
{{/with}}
96
{{> head-last}}
107
</head>
118
<body class="home">

src/layouts/tutorials.hbs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
<head>
44
{{> head-first}}
55
<title>Tutorials{{#with site.title}} | {{this}}{{/with}}</title>
6-
{{#with page.canonicalUrl}}
7-
<link rel="canonical" href="{{this}}">
8-
{{/with}}
96
{{> head-last}}
107
</head>
118
<body class="tutorials body tiles">

src/partials/head-last.hbs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
{{#with page.canonicalUrl}}
2+
<link rel="canonical" href="{{this}}">
3+
{{/with}}
14
<link rel="stylesheet" href="{{{uiRootPath}}}/css/site.css">
25
<script src="{{{uiRootPath}}}/js/vendor/jquery.js"></script>
36
{{#if env.OPTANON_SCRIPT_URL}}

0 commit comments

Comments
 (0)