Skip to content

Commit 14b387e

Browse files
authored
Merge pull request #134 from silvanocerza/canonical-url
Add canonical URL link in header.html
2 parents 50558ed + 4faf3de commit 14b387e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

layouts/partials/header.html

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<head>
22
<link href="https://gmpg.org/xfn/11" rel="profile">
3+
{{ if .Params.canonicalUrl }}
4+
<link rel="canonical" href="{{ .Params.canonicalUrl }}">
5+
{{ else }}
6+
<link rel="canonical" href="{{ .Permalink }}">
7+
{{ end }}
38
{{ partial "header/meta.html" . }}
49
{{ partial "header/styles.html" . }}
510
{{ `<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->

0 commit comments

Comments
 (0)