Remove paige.authors, paige.list.authors params
This commit is contained in:
@@ -224,9 +224,6 @@ paige:
|
|||||||
domain: ""
|
domain: ""
|
||||||
yandex: # See https://metrica.yandex.com
|
yandex: # See https://metrica.yandex.com
|
||||||
account_id: ""
|
account_id: ""
|
||||||
authors:
|
|
||||||
class: "text-center text-secondary"
|
|
||||||
hide: false
|
|
||||||
color: "#0d6efd" # Bootstrap primary color; theme color for Safari and Windows
|
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"
|
color_scheme: "" # Always use this color scheme without automatic switching; must be "", "light", or "dark"
|
||||||
comments:
|
comments:
|
||||||
@@ -264,9 +261,6 @@ paige:
|
|||||||
git:
|
git:
|
||||||
commit_url_prefix: "" # Example is "https://github.com/willfaught/paige/commit/"
|
commit_url_prefix: "" # Example is "https://github.com/willfaught/paige/commit/"
|
||||||
list:
|
list:
|
||||||
authors:
|
|
||||||
class: "mb-0 text-center text-secondary"
|
|
||||||
hide: false
|
|
||||||
content:
|
content:
|
||||||
show: false
|
show: false
|
||||||
date:
|
date:
|
||||||
|
@@ -8,8 +8,7 @@
|
|||||||
{{ $listshowcontent = $params.listshowcontent }}
|
{{ $listshowcontent = $params.listshowcontent }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ $authors := cond ($page.Param "paige.authors.hide" | not) (partial "paige/authors.html" $page) "" }}
|
{{ $authors := partial "paige/authors.html" $page }}
|
||||||
{{ $authorsclass := $page.Param "paige.authors.class" | default "paige-authors text-center text-secondary" }}
|
|
||||||
{{ $categories := cond ($page.Param "paige.terms.hide" | not) ($page.Params.categories | default slice) slice | uniq }}
|
{{ $categories := cond ($page.Param "paige.terms.hide" | not) ($page.Params.categories | default slice) slice | uniq }}
|
||||||
{{ $commiturl := "" }}
|
{{ $commiturl := "" }}
|
||||||
{{ $date := cond ($page.Param "paige.date.hide" | not) (cond (eq ($page.Param "paige.date.source" | default "published") "published") $page.PublishDate $page.Lastmod) "" }}
|
{{ $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 }}
|
{{ end }}
|
||||||
|
|
||||||
{{ with $authors }}
|
{{ 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 }}
|
{{ end }}
|
||||||
|
|
||||||
{{ with $date }}
|
{{ with $date }}
|
||||||
|
@@ -23,8 +23,7 @@
|
|||||||
<p class="{{ $.Param `paige.list.date_header.class` | default `h5 paige-date-header text-center` }}">{{ .Key }}</p>
|
<p class="{{ $.Param `paige.list.date_header.class` | default `h5 paige-date-header text-center` }}">{{ .Key }}</p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ range .Pages }}
|
{{ range .Pages }}
|
||||||
{{ $authors := cond ($page.Param "paige.list.authors.hide" | not) (partial "paige/authors.html" .) "" }}
|
{{ $authors := partial "paige/authors.html" . }}
|
||||||
{{ $authorsclass := $page.Param "paige.list.authors.class" | default "mb-0 paige-authors text-center text-secondary" }}
|
|
||||||
{{ $categories := cond ($page.Param "paige.list.terms.hide" | not) (.Params.categories | default slice) slice | uniq }}
|
{{ $categories := cond ($page.Param "paige.list.terms.hide" | not) (.Params.categories | default slice) slice | uniq }}
|
||||||
{{ $commiturl := "" }}
|
{{ $commiturl := "" }}
|
||||||
{{ $date := cond ($page.Param "paige.list.date.hide" | not) .PublishDate "" }}
|
{{ $date := cond ($page.Param "paige.list.date.hide" | not) .PublishDate "" }}
|
||||||
@@ -106,7 +105,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ with $authors }}
|
{{ with $authors }}
|
||||||
<p {{ with $authorsclass }} class="{{ . }}" {{ end }}>{{ . }}</p>
|
<p class="mb-0 paige-authors text-center text-secondary">{{ . }}</p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ with $date }}
|
{{ with $date }}
|
||||||
|
Reference in New Issue
Block a user