From 739499b106513c919ddc96726763fe92bcb2196e Mon Sep 17 00:00:00 2001 From: "David G. Simmons" Date: Tue, 15 Oct 2024 13:59:30 -0400 Subject: [PATCH] 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 dc1850a..6798adb 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" . -}}