mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-11-21 20:50:40 +00:00
fix usage of summary and description shortcode
This commit is contained in:
parent
c7b641010f
commit
614d157b2f
@ -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 }}
|
||||||
|
@ -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" . }}
|
||||||
|
Loading…
Reference in New Issue
Block a user