frontmatter uses both summary and description for site's meta description

This commit is contained in:
Nuno Coração 2023-05-12 14:10:41 +01:00
parent 00704d369a
commit 7c2ca7969e

View file

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