Merge pull request #134 from silvanocerza/canonical-url
Add canonical URL link in header.html
This commit is contained in:
commit
14b387e666
1 changed files with 5 additions and 0 deletions
|
@ -1,5 +1,10 @@
|
||||||
<head>
|
<head>
|
||||||
<link href="https://gmpg.org/xfn/11" rel="profile">
|
<link href="https://gmpg.org/xfn/11" rel="profile">
|
||||||
|
{{ if .Params.canonicalUrl }}
|
||||||
|
<link rel="canonical" href="{{ .Params.canonicalUrl }}">
|
||||||
|
{{ else }}
|
||||||
|
<link rel="canonical" href="{{ .Permalink }}">
|
||||||
|
{{ end }}
|
||||||
{{ partial "header/meta.html" . }}
|
{{ partial "header/meta.html" . }}
|
||||||
{{ partial "header/styles.html" . }}
|
{{ partial "header/styles.html" . }}
|
||||||
{{ `<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
|
{{ `<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
|
||||||
|
|
Loading…
Reference in a new issue