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" }}