From d73bf1670ca74dcfbb0597891e26e2c0e28242e9 Mon Sep 17 00:00:00 2001 From: vanhumbeecka Date: Fri, 30 Apr 2021 19:53:28 +0200 Subject: Update head.html Add an optional canonical URL as a link tag. See [here](https://developers.google.com/search/docs/advanced/crawling/consolidate-duplicate-urls#expandable-5) for more info regarding this tag. Useful for when reposting an existing article, and pointing to the original. --- layouts/partials/head.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index d1d897d..ed5ddad 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -41,10 +41,14 @@ {{if .Site.Params.manifest}} {{end}} + +{{if .Params.canonicalUrl}} + +{{end}} + {{ if .Site.Params.favicon }} - {{ end }} {{ $styles := resources.Get "scss/journal.scss" | toCSS | minify | fingerprint }} -- cgit v1.2.3