Remove paige.list.summary params

master
Will Faught 2 years ago
parent 80ec8a9107
commit 171aeece0b

@ -277,9 +277,6 @@ paige:
hide: false
section:
class: "mb-3 w-100"
summary:
class: "fst-italic mb-0 text-center"
hide: false
terms:
hide: false
inner_class: "badge text-bg-secondary text-decoration-none"

@ -38,8 +38,7 @@
{{ $readingtime := cond ($page.Param "paige.list.reading_time.hide" | not) .ReadingTime "" }}
{{ $readingtimeclass := $page.Param "paige.list.reading_time.class" | default "mb-0 paige-reading-time text-center text-secondary" }}
{{ $sectionclass := $page.Param "paige.list.section.class" | default "mb-3 paige-page w-100" }}
{{ $summary := cond ($page.Param "paige.list.summary.hide" | not) (.Summary | htmlUnescape | plainify) "" }}
{{ $summaryclass := $page.Param "paige.list.summary.class" | default "fst-italic mb-0 paige-summary text-center" }}
{{ $summary := .Summary | htmlUnescape | plainify }}
{{ $tags := cond ($page.Param "paige.list.terms.hide" | not) (.Params.tags | default slice) slice | uniq }}
{{ $termsinnerclass := $page.Param "paige.list.terms.inner_class" | default "badge paige-terms-inner text-bg-secondary text-decoration-none" }}
{{ $termsouterclass := $page.Param "paige.list.terms.outer_class" | default "mb-0 paige-terms-outer text-center" }}
@ -83,7 +82,7 @@
{{ end }}
{{ with $summary }}
<p {{ with $summaryclass }} class="{{ . }}" {{ end }}>{{ . }}</p>
<p class="fst-italic mb-0 paige-summary text-center">{{ . }}</p>
{{ end }}
{{ if or $categories $tags }}

Loading…
Cancel
Save