From a1f43e9de5b8c30930c55529de426dc87edd57a6 Mon Sep 17 00:00:00 2001 From: Tim Bannister Date: Mon, 3 Oct 2022 16:37:07 +0100 Subject: [PATCH] Move canonical link earlier in metadata To help search engines, make the canonical URL appear near the start of the HTML element. This improves the chance of a search engine paying attention; some indexers only read part of the page and ignore information that appears later within the element. --- layouts/blog/baseof.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/blog/baseof.html b/layouts/blog/baseof.html index 4163c5b474..2967f38675 100644 --- a/layouts/blog/baseof.html +++ b/layouts/blog/baseof.html @@ -1,12 +1,12 @@ - {{ partial "head.html" . }} - {{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }} - {{ with .Params.canonicalUrl }} {{ end }} + {{ partial "head.html" . }} + {{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }} +