Remove paige.authors, paige.list.authors params

master
Will Faught 2 years ago
parent 4270766090
commit 80ec8a9107

@ -224,9 +224,6 @@ paige:
domain: ""
yandex: # See https://metrica.yandex.com
account_id: ""
authors:
class: "text-center text-secondary"
hide: false
color: "#0d6efd" # Bootstrap primary color; theme color for Safari and Windows
color_scheme: "" # Always use this color scheme without automatic switching; must be "", "light", or "dark"
comments:
@ -264,9 +261,6 @@ paige:
git:
commit_url_prefix: "" # Example is "https://github.com/willfaught/paige/commit/"
list:
authors:
class: "mb-0 text-center text-secondary"
hide: false
content:
show: false
date:

@ -8,8 +8,7 @@
{{ $listshowcontent = $params.listshowcontent }}
{{ end }}
{{ $authors := cond ($page.Param "paige.authors.hide" | not) (partial "paige/authors.html" $page) "" }}
{{ $authorsclass := $page.Param "paige.authors.class" | default "paige-authors text-center text-secondary" }}
{{ $authors := partial "paige/authors.html" $page }}
{{ $categories := cond ($page.Param "paige.terms.hide" | not) ($page.Params.categories | default slice) 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) "" }}
@ -58,7 +57,7 @@
{{ end }}
{{ with $authors }}
<p {{ if or $authorsclass $date $readingtime }} class="{{ if or $date $readingtime }} {{ $nogap }} {{ end }} {{ with $authorsclass }} {{ . }} {{ end }}" {{ end }}>{{ . }}</p>
<p class="{{ if or $date $readingtime }} {{ $nogap }} {{ end }} paige-authors text-center text-secondary">{{ . }}</p>
{{ end }}
{{ with $date }}

@ -23,8 +23,7 @@
<p class="{{ $.Param `paige.list.date_header.class` | default `h5 paige-date-header text-center` }}">{{ .Key }}</p>
{{ end }}
{{ range .Pages }}
{{ $authors := cond ($page.Param "paige.list.authors.hide" | not) (partial "paige/authors.html" .) "" }}
{{ $authorsclass := $page.Param "paige.list.authors.class" | default "mb-0 paige-authors text-center text-secondary" }}
{{ $authors := partial "paige/authors.html" . }}
{{ $categories := cond ($page.Param "paige.list.terms.hide" | not) (.Params.categories | default slice) slice | uniq }}
{{ $commiturl := "" }}
{{ $date := cond ($page.Param "paige.list.date.hide" | not) .PublishDate "" }}
@ -106,7 +105,7 @@
{{ end }}
{{ with $authors }}
<p {{ with $authorsclass }} class="{{ . }}" {{ end }}>{{ . }}</p>
<p class="mb-0 paige-authors text-center text-secondary">{{ . }}</p>
{{ end }}
{{ with $date }}

Loading…
Cancel
Save