From 2abc278c69e21eb5fddae7d330eb83a5428db700 Mon Sep 17 00:00:00 2001 From: Cody Brownstein <25962175+cbrownstein@users.noreply.github.com> Date: Tue, 15 Dec 2020 09:29:04 -0800 Subject: [PATCH] head: Fix user defining canonical URL resulting in multiple canonical URLs (#133) * Revert "head: add support for Canonical URLs" This reverts commit 8af7c551ffb45e31d545373f88c78b38f660cf8d. * Allow user to specify single canonical URL --- layouts/partials/head.html | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 05837007..c759d585 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -16,11 +16,7 @@ {{- .Summary | default (printf "%s - %s" .Title .Site.Title) }}{{- else }} {{- with .Site.Params.description }}{{ . }}{{- end }}{{- end }}{{- end -}}"> - -{{- $canonical := cond (.IsHome) .Site.Params.canonical .Params.canonical }} -{{- range $canonical }} - -{{- end }} + {{- if .Site.Params.analytics.google.SiteVerificationTag }} {{- end}}