diff --git a/README.md b/README.md index 22631d1b..d4609062 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/layouts/partials/paige/metadata.html b/layouts/partials/paige/metadata.html index e1bdfadd..9854aef8 100644 --- a/layouts/partials/paige/metadata.html +++ b/layouts/partials/paige/metadata.html @@ -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 }} -

{{ . }}

+

{{ . }}

{{ end }} {{ with $date }} diff --git a/layouts/partials/paige/pages.html b/layouts/partials/paige/pages.html index 2f5a10d0..0790dea7 100644 --- a/layouts/partials/paige/pages.html +++ b/layouts/partials/paige/pages.html @@ -23,8 +23,7 @@

{{ .Key }}

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

{{ . }}

+

{{ . }}

{{ end }} {{ with $date }}