diff --git a/CHANGELOG.md b/CHANGELOG.md index 4edabac..ee93ce8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] +### Added + +- `canonicalUrl` parameter for article front matter ([#1046](https://github.com/jpanther/congo/pull/1046)) + ### Changed - ⚠️ Required Hugo version is now 0.146.0 or later diff --git a/layouts/partials/head.html b/layouts/partials/head.html index efb9c83..8407e31 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -94,7 +94,11 @@ {{ with .Params.robots }} {{ end }} - + {{ if .Params.canonicalUrl }} + + {{ else }} + + {{ end }} {{ range .AlternativeOutputFormats -}} {{ printf `` .Rel .MediaType.Type .RelPermalink ($.Site.Title | emojify) | safeHTML }} {{ end -}}