diff --git a/CHANGELOG.md b/CHANGELOG.md index 765495e..419b466 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 page front matter + ### Fixed - Shortcodes placed after code blocks with line numbers are rendered with incorrect spacing ([#987](https://github.com/jpanther/congo/issues/987)) 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 -}}