Fixing a bug with <meta name=description>

This commit is contained in:
Maksim Iakunin 2021-10-19 20:06:44 +03:00
parent 8b3e9c711e
commit 30ca3e0a08
No known key found for this signature in database
GPG Key ID: 629DE6EA48DAF1F4

View File

@ -5,7 +5,7 @@
<meta name="referrer" content="no-referrer-when-downgrade">
<title>{{ if and (.Title) (not .IsHome) }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title>
<meta name="description" content="{{ .Site.Params.Description }}">
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end -}}">
{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}