diff options
author | matt6697 <32440697+matt6697@users.noreply.github.com> | 2021-09-21 20:07:05 +0300 |
---|---|---|
committer | matt6697 <32440697+matt6697@users.noreply.github.com> | 2021-09-21 20:07:05 +0300 |
commit | 20e45e2abbeede15e9f8eb819be5373004e17d0a (patch) | |
tree | 3401224243583703a6889f37f62fd5e4805a367e | |
parent | 3de3281579e26eafc1aea81c179fbf494017b926 (diff) |
Added missing canonical URL to avoid duplicate content indexing by google
-rw-r--r-- | layouts/partials/head.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index e6f0cbe..3875129 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -5,6 +5,7 @@ {{ if or (eq site.BaseURL "/") (eq site.BaseURL "http://localhost:1313/") (eq site.BaseURL "http://examplesite.org/") (eq site.BaseURL "https://examplesite.org/") (eq site.BaseURL "http://examplesite.com/") (eq site.BaseURL "https://examplesite.com/")}}{{else}}
<base href="{{ site.BaseURL }}">
{{ end }}
+<link rel="canonical" href="{{ .Permalink }}" itemprop="url" />
<!-- multilingual SEO optimizations -->
{{ if .IsTranslated }}
|