diff options
author | Sidharth R <ofw3210@gmail.com> | 2021-12-13 15:18:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-13 15:18:39 +0300 |
commit | efbc6acf902b3413c1814c3eb662bed0558ca5d1 (patch) | |
tree | 570ed06f21e2cd5afe35fbb8299e2b7f38f49c2f | |
parent | ae30c7d3b85e38ed30866326c412946dd50bfa78 (diff) |
Canonical URLs should be absolute not relative (#66)
https://developers.google.com/search/docs/advanced/crawling/consolidate-duplicate-urls#rel-canonical-link-method
-rw-r--r-- | layouts/partials/head.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 0fdc8fe..88a6e6c 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -4,7 +4,7 @@ <meta http-equiv="X-UA-Compatible" content="IE=edge"> {{ hugo.Generator }} - <link rel="canonical" href="{{ .RelPermalink }}"> + <link rel="canonical" href="{{ .Permalink }}" /> {{ if .IsHome }} {{ with .Site.Params.homeMetaContent }} |