Use description-or-summary partial in SEO tags

This commit is contained in:
bbaovanc committed 2021-11-22 14:24:13 -06:00
1 parent 502fc36b0d
commit f9e7eeeaa6
5 files changed
+13 -9

No files matched your search

+9 -5
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 -}}