From aa0394c469e9cde82ea3199218d20f2933d64c6e Mon Sep 17 00:00:00 2001 From: Arpit Gupta Date: Fri, 19 Jul 2024 16:17:53 +0530 Subject: [PATCH] Implement Canonical URL This change adds canonical URL to all pages. Reference: https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls#rel-canonical-link-method --- layouts/partials/head.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index cdd766a..bf00a74 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -15,9 +15,11 @@ {{ end }} + + {{ partialCached "head/css.html" . }} {{ partialCached "head/js.html" . }} {{ if hugo.IsProduction }} {{ template "_internal/google_analytics.html" . }} -{{ end }} \ No newline at end of file +{{ end }}