diff options
| -rw-r--r-- | layouts/partials/head.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 4a4d466..408cee0 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -17,6 +17,10 @@ {{- with .Site.Params.description }}{{ . }}{{- end }}{{- end }}{{- end -}}"> <meta name="author" content="{{ (partial "author.html" . ) }}"> <link rel="canonical" href="{{ .Permalink }}" /> +{{- $canonical := cond (.IsHome) .Site.Params.canonical .Params.canonical }} +{{- range $canonical }} +<link rel="canonical" href="{{ trim . " " }}" /> +{{- end }} {{- if .Site.Params.analytics.google.SiteVerificationTag }} <meta name="google-site-verification" content="{{ .Site.Params.analytics.google.SiteVerificationTag }}" /> {{- end}} |
