Merge pull request #107 from iakunin/2021-10-19_meta-description

Fixing a bug with `<meta name=description>`
This commit is contained in:
Dmitry Kolosov 2021-10-21 08:58:56 +03:00 committed by GitHub
commit d33134ecdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@
<meta name="referrer" content="no-referrer-when-downgrade">
{{ partial "title.html" }}
<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 }}