Remove paige.date.source config

master
Will Faught 2 years ago
parent ac88a758b3
commit b06903d6c0

@ -240,7 +240,6 @@ github_repo = ""
[paige.date] [paige.date]
format = ":date_long" # Hugo date format format = ":date_long" # Hugo date format
source = "published" # Displayed date in single pages; must be "published" or "modified"
[paige.git] [paige.git]
commit_url = "" # Example is "https://github.com/willfaught/paige/commit/%s" commit_url = "" # Example is "https://github.com/willfaught/paige/commit/%s"

@ -3,7 +3,7 @@
{{ $authors := partial "paige/authors.html" $page }} {{ $authors := partial "paige/authors.html" $page }}
{{ $categories := $page.Params.categories | default slice | uniq }} {{ $categories := $page.Params.categories | default slice | uniq }}
{{ $commiturl := "" }} {{ $commiturl := "" }}
{{ $date := cond (eq ($page.Param "paige.date.source" | default "published") "published") $page.PublishDate $page.Lastmod }} {{ $date := $page.PublishDate }}
{{ $dateformat := $page.Param "paige.date.format" | default ":date_long" }} {{ $dateformat := $page.Param "paige.date.format" | default ":date_long" }}
{{ $description := $page.Description | markdownify }} {{ $description := $page.Description | markdownify }}
{{ $link := $page.Params.link }} {{ $link := $page.Params.link }}

Loading…
Cancel
Save