diff options
author | Mehedi Sharif Titas <mehedishariftitas@gmail.com> | 2021-09-21 20:12:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-21 20:12:12 +0300 |
commit | f0e4112055e237dc8384b59eb148082fe29afe81 (patch) | |
tree | 3401224243583703a6889f37f62fd5e4805a367e | |
parent | 3de3281579e26eafc1aea81c179fbf494017b926 (diff) | |
parent | 20e45e2abbeede15e9f8eb819be5373004e17d0a (diff) |
Merge pull request #49 from joomlaext/master
Added missing canonical URL to avoid duplicate content indexing
-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 }}
|