From 9ad6a3d9a52ba3626c12d16bd64fa03edf74c8db Mon Sep 17 00:00:00 2001 From: Will Faught Date: Fri, 24 Feb 2023 21:13:55 -0800 Subject: [PATCH] Remove paige.date.{class,hide}, paige.list.date params --- README.md | 6 ------ layouts/partials/paige/metadata.html | 5 ++--- layouts/partials/paige/pages.html | 7 +++---- 3 files changed, 5 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index d7b17a23..553b5532 100644 --- a/README.md +++ b/README.md @@ -254,19 +254,13 @@ paige: link: hide: false # Don't credit this project in the footer date: - class: "text-center text-secondary" format: ":date_long" # Hugo date format - hide: false source: "published" # Displayed date; must be "published" or "modified" git: commit_url_prefix: "" # Example is "https://github.com/willfaught/paige/commit/" list: content: show: false - date: - class: "mb-0 text-center text-secondary" - format: ":date_long" # Hugo date format - hide: false date_header: class: "h5 text-center" hide: false diff --git a/layouts/partials/paige/metadata.html b/layouts/partials/paige/metadata.html index e12330f4..50475eea 100644 --- a/layouts/partials/paige/metadata.html +++ b/layouts/partials/paige/metadata.html @@ -11,8 +11,7 @@ {{ $authors := partial "paige/authors.html" $page }} {{ $categories := $page.Params.categories | default slice | uniq }} {{ $commiturl := "" }} -{{ $date := cond ($page.Param "paige.date.hide" | not) (cond (eq ($page.Param "paige.date.source" | default "published") "published") $page.PublishDate $page.Lastmod) "" }} -{{ $dateclass := $page.Param "paige.date.class" | default "paige-date text-center text-secondary" }} +{{ $date := cond (eq ($page.Param "paige.date.source" | default "published") "published") $page.PublishDate $page.Lastmod }} {{ $dateformat := $page.Param "paige.date.format" | default ":date_long" }} {{ $description := $page.Description | markdownify }} {{ $nogap := "mb-0" }} @@ -59,7 +58,7 @@ {{ end }} {{ with $date }} -

+

{{ with $commiturl }} {{ end }} diff --git a/layouts/partials/paige/pages.html b/layouts/partials/paige/pages.html index 8006abf3..763e469c 100644 --- a/layouts/partials/paige/pages.html +++ b/layouts/partials/paige/pages.html @@ -26,9 +26,8 @@ {{ $authors := partial "paige/authors.html" . }} {{ $categories := .Params.categories | default slice | uniq }} {{ $commiturl := "" }} - {{ $date := cond ($page.Param "paige.list.date.hide" | not) .PublishDate "" }} - {{ $dateclass := $page.Param "paige.list.date.class" | default "mb-0 paige-date text-center text-secondary" }} - {{ $dateformat := $page.Param "paige.list.date.format" | default ":date_long" }} + {{ $date := .PublishDate }} + {{ $dateformat := $page.Param "paige.date.format" | default ":date_long" }} {{ $description := .Description | markdownify }} {{ $draft := .Draft }} {{ $expired := and .ExpiryDate (lt .ExpiryDate now) }} @@ -106,7 +105,7 @@ {{ end }} {{ with $date }} -

+

{{ with $commiturl }} {{ end }}