Use description-or-summary partial in SEO tags

This commit is contained in:
2021-11-22 14:24:13 -06:00
parent 502fc36b0d
commit f9e7eeeaa6
5 changed files with 13 additions and 9 deletions

View File

@ -1,5 +1,9 @@
{{ with .Description }}
<p>{{ . | markdownify }}</p>
{{ else }}
{{ .Summary }}
{{ end }}
{{- with .Description -}}
<p>{{- . | markdownify -}}</p>
{{- else -}}
{{- with .Summary -}}
{{- . -}}
{{- else -}}
{{- .Site.Params.description -}}
{{- end -}}
{{- end -}}