From 171aeece0b4d8d3b3482e88f5fff2cfeb08ad309 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Fri, 24 Feb 2023 20:57:41 -0800 Subject: [PATCH] Remove paige.list.summary params --- README.md | 3 --- layouts/partials/paige/pages.html | 5 ++--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index d4609062..d4e6518b 100644 --- a/README.md +++ b/README.md @@ -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" diff --git a/layouts/partials/paige/pages.html b/layouts/partials/paige/pages.html index 0790dea7..73991d30 100644 --- a/layouts/partials/paige/pages.html +++ b/layouts/partials/paige/pages.html @@ -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 }} -

{{ . }}

+

{{ . }}

{{ end }} {{ if or $categories $tags }}