diff --git a/README.md b/README.md index f8df719a..a330620b 100644 --- a/README.md +++ b/README.md @@ -280,6 +280,9 @@ paige: reading_time: class: "text-center text-secondary" # Default is "text-center text-secondary" show: false # Default is false + tags: + class: "badge text-bg-secondary text-decoration-none" # Default is "badge text-bg-secondary text-decoration-none" + show: false # Default is false title: class: "display-5 fw-bold text-center" # Default is "display-5 fw-bold text-center" hide: false # Default is false @@ -306,6 +309,9 @@ paige: summary: class: "text-center" # Default is "text-center" show: false # Default is false + tags: + class: "badge text-bg-secondary text-decoration-none" # Default is "badge text-bg-secondary text-decoration-none" + show: false # Default is false title: class: "text-center" # Default is "text-center" hide: false # Default is false diff --git a/layouts/partials/paige/about.html b/layouts/partials/paige/about.html index 75d5436e..fa69059e 100644 --- a/layouts/partials/paige/about.html +++ b/layouts/partials/paige/about.html @@ -9,22 +9,31 @@ {{ $dateclass := $page.Param "paige.page.date.class" | default "text-center text-secondary" }} {{ $readingtime := $page.Param "paige.page.reading_time.show" }} {{ $readingtimeclass := $page.Param "paige.page.reading_time.class" | default "text-center text-secondary" }} +{{ $tags := cond ($page.Param "paige.page.tags.show" | not) slice ($page.Params.tags | default slice) | sort | uniq }} +{{ $tagsclass := $page.Param "paige.page.tags.class" | default "badge text-bg-secondary text-decoration-none" }} {{ with $authors }} -
+ {{ end }} {{ with $date }} -+
{{ end }} {{ if $readingtime }} -{{ $page.ReadingTime }} {{ i18n "paige_minutes" $page.ReadingTime }}
+ {{ end }} {{ with $categories }} -+
{{ end }} +{{ with $tags }} ++ {{ range . }} + {{ . }} + {{ end }} +
+{{ end }} diff --git a/layouts/partials/paige/pages.html b/layouts/partials/paige/pages.html index 76cc1540..5923263f 100644 --- a/layouts/partials/paige/pages.html +++ b/layouts/partials/paige/pages.html @@ -40,6 +40,8 @@ {{ $readingtimeclass := $page.Param "paige.page_list.reading_time.class" | default "text-center text-secondary" }} {{ $summary := cond ($page.Param "paige.page_list.summary.show" | not) "" (.Summary | strings.TrimPrefix "" | strings.TrimSuffix "
") }} {{ $summaryclass := $page.Param "paige.page_list.summary.class" | default $class }} + {{ $tags := cond ($page.Param "paige.page_list.tags.show" | not) slice (.Params.tags | default slice) | sort | uniq }} + {{ $tagsclass := $page.Param "paige.page_list.tags.class" | default "badge text-bg-secondary text-decoration-none" }} {{ $title := cond ($page.Param "paige.page_list.title.hide" | not) (.Title | markdownify) "" }} {{ $titleclass := $page.Param "paige.page_list.title.class" | default $class }} @@ -61,30 +63,37 @@ {{ $flags = delimit ($flags | sort | uniq) " " }} - {{ with $description }} - + {{ end }} {{ with $authors }} - + {{ end }} {{ if $date }} -+
{{ end }} {{ if $readingtime }} -{{ .ReadingTime }} {{ i18n "paige_minutes" .ReadingTime }}
+ {{ end }} {{ with $categories }} -+
{{ end }} + {{ with $tags }} ++ {{ range . }} + {{ . }} + {{ end }} +
+ {{ end }} {{ if $summary }}{{ $summary }}
{{ end }}