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

github.com/saey55/hugo-elate-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo Winter <mail@leowinter.de>2017-03-19 01:09:45 +0300
committerGitHub <noreply@github.com>2017-03-19 01:09:45 +0300
commita0348b73d0d932affae330d8b918d2c0ed4df6d2 (patch)
treec53952cffd5396c4672facdfbe42377b00159e8b
parentceec34254680052ed043d774acc63cb2232f979c (diff)
Add canonical link
Add canonical link to prevent duplicate content. https://en.wikipedia.org/wiki/Canonical_link_element
-rwxr-xr-xlayouts/partials/head.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index bd45b8f..5a4a9d8 100755
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -53,6 +53,8 @@
<meta name="twitter:url" content="" />
<meta name="twitter:card" content="" />
-->
+ <!-- canonical link tag -->
+ <link rel="canonical" href="{{ .Permalink }}"/>
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
<link rel="shortcut icon" href="favicon.ico">