Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/htr3n/hyde-hyde.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/partials/header.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 4d918e1..2c7cfad 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -1,5 +1,10 @@
<head>
<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/styles.html" . }}
{{ `<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->