From 739499b106513c919ddc96726763fe92bcb2196e Mon Sep 17 00:00:00 2001 From: "David G. Simmons" Date: Tue, 15 Oct 2024 13:59:30 -0400 Subject: [PATCH 1/3] Add support for canonical links Add a `relcanonical: ` item to the frontmatter and this will then make sure that the `` value is set properly. --- layouts/_default/baseof.html | 4 +++- layouts/partials/misc/canoncial.html | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 layouts/partials/misc/canoncial.html diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index dc1850a3b..6798adbdf 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -8,7 +8,9 @@ {{ template "_internal/twitter_cards.html" . }} {{ block "header" . }} {{ end }} - + {{ with .Params.relcanonical }} + {{ partial "misc/canonical.html" . }} + {{ end }} {{- partial "analytics.html" . -}} {{end}} + + {{ with .statcounter }} + + + + + + {{ end }} {{ end }} {{ end }} {{ end }} From ec98e49c221aa1bd0fec4231dba64a6645a6ac71 Mon Sep 17 00:00:00 2001 From: "David G. Simmons" Date: Mon, 21 Oct 2024 09:07:12 -0400 Subject: [PATCH 3/3] remove canonical --- layouts/partials/misc/canoncial.html | 1 - 1 file changed, 1 deletion(-) delete mode 100644 layouts/partials/misc/canoncial.html diff --git a/layouts/partials/misc/canoncial.html b/layouts/partials/misc/canoncial.html deleted file mode 100644 index c676f8e08..000000000 --- a/layouts/partials/misc/canoncial.html +++ /dev/null @@ -1 +0,0 @@ -