diff --git a/README.md b/README.md index 14da76fe..642a2846 100644 --- a/README.md +++ b/README.md @@ -277,7 +277,7 @@ paige: title: class: "display-5 fw-bold text-center" # Default is "display-5 fw-bold text-center" hide: false # Default is false - pages: # Page lists in list and term default layouts + page_list: authors: class: "text-center text-secondary" # Default is "text-center text-secondary" show: false # Default is false diff --git a/layouts/partials/paige/pages.html b/layouts/partials/paige/pages.html index 7e0ac380..f7bc47bf 100644 --- a/layouts/partials/paige/pages.html +++ b/layouts/partials/paige/pages.html @@ -18,24 +18,24 @@ {{ $p := .Paginate (.Pages.ByDate.Reverse.GroupByDate "January 2006") }}
{{ range $p.PageGroups }} - {{ if $.Param "paige.pages.header.hide" | not }} -

{{ .Key }}

+ {{ if $.Param "paige.page_list.header.hide" | not }} +

{{ .Key }}

{{ end }} {{ range .Pages }} {{ $class := "text-center" }} - {{ $authors := cond ($.Param "paige.pages.authors.show" | not) "" (partial "paige/func-authors.html" .) }} - {{ $authorsclass := $.Param "paige.pages.authors.class" | default (print $class " text-secondary") }} - {{ $date := cond ($.Param "paige.pages.date.show" | not) "" .PublishDate }} - {{ $dateclass := $.Param "paige.pages.date.class" | default (print $class " text-secondary") }} - {{ $description := cond ($.Param "paige.pages.description.hide" | not) (.Description | markdownify) "" }} - {{ $descriptionclass := $.Param "paige.pages.description.class" | default $class }} + {{ $authors := cond ($.Param "paige.page_list.authors.show" | not) "" (partial "paige/func-authors.html" .) }} + {{ $authorsclass := $.Param "paige.page_list.authors.class" | default (print $class " text-secondary") }} + {{ $date := cond ($.Param "paige.page_list.date.show" | not) "" .PublishDate }} + {{ $dateclass := $.Param "paige.page_list.date.class" | default (print $class " text-secondary") }} + {{ $description := cond ($.Param "paige.page_list.description.hide" | not) (.Description | markdownify) "" }} + {{ $descriptionclass := $.Param "paige.page_list.description.class" | default $class }} {{ $flags := slice }} {{ $gap := "mb-0" }} - {{ $summary := cond ($.Param "paige.pages.summary.show" | not) "" (.Summary | strings.TrimPrefix "

" | strings.TrimSuffix "

") }} - {{ $summaryclass := $.Param "paige.pages.summary.class" | default $class }} - {{ $title := cond ($.Param "paige.pages.title.hide" | not) (.Title | markdownify) "" }} - {{ $titleclass := $.Param "paige.pages.title_class" | default $class }} + {{ $summary := cond ($.Param "paige.page_list.summary.show" | not) "" (.Summary | strings.TrimPrefix "

" | strings.TrimSuffix "

") }} + {{ $summaryclass := $.Param "paige.page_list.summary.class" | default $class }} + {{ $title := cond ($.Param "paige.page_list.title.hide" | not) (.Title | markdownify) "" }} + {{ $titleclass := $.Param "paige.page_list.title_class" | default $class }} {{ if .Draft }} {{ $flags = $flags | append "paige-draft" "paige-unpublished" }}