fix usage of summary and description shortcode

This commit is contained in:
Robert Kaussow 2022-02-22 22:05:49 +01:00
parent c7b641010f
commit 614d157b2f
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@
</header> </header>
<section class="gblog-markdown"> <section class="gblog-markdown">
{{ partial "utils/description" . }} {{ .Summary }}
</section> </section>
<div class="gblog-post__readmore"> <div class="gblog-post__readmore">
{{ if .Truncated }} {{ if .Truncated }}

View File

@ -36,7 +36,7 @@
{{- with .Params.lead }} {{- with .Params.lead }}
"alternativeHeadline": {{ . }}, "alternativeHeadline": {{ . }},
{{- end }} {{- end }}
{{- with .Summary }} {{- with partial "utils/description" . }}
"description": "{{ . | plainify | htmlUnescape | chomp }}", "description": "{{ . | plainify | htmlUnescape | chomp }}",
{{- end }} {{- end }}
{{- with partial "utils/featured" . }} {{- with partial "utils/featured" . }}