From bf874c32d1ee2e67da7f49496106b985b2a50786 Mon Sep 17 00:00:00 2001 From: FarisZR <35614734+FarisZR@users.noreply.github.com> Date: Mon, 1 May 2023 03:09:37 +0200 Subject: [PATCH] add option to set a custom canonical url --- layouts/partials/head/head.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/layouts/partials/head/head.html b/layouts/partials/head/head.html index be63710..5b4fddf 100644 --- a/layouts/partials/head/head.html +++ b/layouts/partials/head/head.html @@ -8,7 +8,11 @@ {{- $title := partialCached "data/title" . .RelPermalink -}} {{ $title }} - +{{ if .Params.canonicalurl }} + +{{ else }} + +{{ end }} {{- partial "head/style.html" . -}} {{- partial "head/script.html" . -}}