Merge pull request #595 from madoke/patch/use-article-description-meta

❇️ Use article/page configured summary ahead of default
This commit is contained in:
Nuno Coração 2023-03-12 19:44:32 +00:00 committed by GitHub
commit e5d81d952e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,11 +14,11 @@
<meta name="title" content="{{ .Title | emojify }} &middot; {{ .Site.Title | emojify }}" /> <meta name="title" content="{{ .Title | emojify }} &middot; {{ .Site.Title | emojify }}" />
{{- end }} {{- end }}
{{/* Metadata */}} {{/* Metadata */}}
{{ with .Site.Params.description -}} {{ with .Params.Summary | default .Site.Params.description -}}
<meta name="description" content="{{ . }}" /> <meta name="description" content="{{ . }}" />
{{- end }} {{- end }}
{{ with .Site.Params.keywords -}} {{ with .Params.Tags | default .Site.Params.keywords -}}
<meta name="keywords" content="{{ . }}" /> <meta name="keywords" content="{{ range . }}{{ . }}, {{ end -}}" />
{{- end }} {{- end }}
{{ with .Site.Params.robots }} {{ with .Site.Params.robots }}
<meta name="robots" content="{{ . }}" /> <meta name="robots" content="{{ . }}" />