From a6667e6c41a2dfaa119bb5a4acb404a9f4ddbca6 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Sat, 28 Jan 2023 19:50:34 -0800 Subject: [PATCH] Rename header to date_header --- README.md | 6 +++--- layouts/partials/paige/pages.html | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 18517f2c..2d6248ef 100644 --- a/README.md +++ b/README.md @@ -285,12 +285,12 @@ paige: class: "text-center text-secondary" # Default is "text-center text-secondary" format: ":date_long" # Default is ":date_long" show: false # Default is false + date_header: + class: "h5 text-center" # Month and year header class attribute + hide: false # Default is false description: class: "text-center" # Default is "text-center" hide: false # Default is false - header: - class: "h5 text-center" # Month and year header class attribute - hide: false # Default is false summary: class: "text-center" # Default is "text-center" show: false # Default is false diff --git a/layouts/partials/paige/pages.html b/layouts/partials/paige/pages.html index aff1c72d..e28da5b6 100644 --- a/layouts/partials/paige/pages.html +++ b/layouts/partials/paige/pages.html @@ -18,8 +18,8 @@ {{ $p := .Paginate (.Pages.ByDate.Reverse.GroupByDate "January 2006") }}
{{ range $p.PageGroups }} - {{ if $.Param "paige.page_list.header.hide" | not }} -

{{ .Key }}

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

{{ .Key }}

{{ end }} {{ range .Pages }} {{ $class := "text-center" }}