diff options
author | Leo Winter <mail@leowinter.de> | 2017-03-19 01:09:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-19 01:09:45 +0300 |
commit | a0348b73d0d932affae330d8b918d2c0ed4df6d2 (patch) | |
tree | c53952cffd5396c4672facdfbe42377b00159e8b | |
parent | ceec34254680052ed043d774acc63cb2232f979c (diff) |
Add canonical link
Add canonical link to prevent duplicate content.
https://en.wikipedia.org/wiki/Canonical_link_element
-rwxr-xr-x | layouts/partials/head.html | 2 |
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">
|