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

github.com/zwbetz-gh/cupper-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSidharth R <ofw3210@gmail.com>2021-12-13 15:18:39 +0300
committerGitHub <noreply@github.com>2021-12-13 15:18:39 +0300
commitefbc6acf902b3413c1814c3eb662bed0558ca5d1 (patch)
tree570ed06f21e2cd5afe35fbb8299e2b7f38f49c2f
parentae30c7d3b85e38ed30866326c412946dd50bfa78 (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.html2
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 }}