Remove paige.reading_time, paige.list.reading_time params

master
Will Faught 2 years ago
parent 9ad6a3d9a5
commit 99a16c41fc

@ -266,9 +266,6 @@ paige:
hide: false hide: false
pages: pages:
hide: false hide: false
reading_time:
class: "mb-0 text-center text-secondary"
hide: false
section: section:
class: "mb-3 w-100" class: "mb-3 w-100"
math: false # Enable math typesetting math: false # Enable math typesetting
@ -277,9 +274,6 @@ paige:
style: "pills" # Must be "links" or "pills" style: "pills" # Must be "links" or "pills"
metadata: metadata:
max_width: "" max_width: ""
reading_time:
class: "text-center text-secondary"
hide: false
rss: rss:
hide_page: false hide_page: false
managing_editor: "" managing_editor: ""

@ -15,8 +15,7 @@
{{ $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 }}
{{ $nogap := "mb-0" }} {{ $nogap := "mb-0" }}
{{ $readingtime := cond ($page.Param "paige.reading_time.hide" | not) $page.ReadingTime "" }} {{ $readingtime := $page.ReadingTime }}
{{ $readingtimeclass := $page.Param "paige.reading_time.class" | default "paige-reading-time text-center text-secondary" }}
{{ $tags := $page.Params.tags | default slice | uniq }} {{ $tags := $page.Params.tags | default slice | uniq }}
{{ $title := $page.Title | markdownify }} {{ $title := $page.Title | markdownify }}
{{ $titlelink := $page.Params.link }} {{ $titlelink := $page.Params.link }}
@ -72,6 +71,6 @@
{{ end }} {{ end }}
{{ with $readingtime }} {{ with $readingtime }}
<p {{ with $readingtimeclass }} class="{{ . }}" {{ end }}>{{ . }} {{ i18n "paige_minutes" . }}</p> <p class="paige-reading-time text-center text-secondary">{{ . }} {{ i18n "paige_minutes" . }}</p>
{{ end }} {{ end }}
</section> </section>

@ -34,8 +34,7 @@
{{ $flags := slice }} {{ $flags := slice }}
{{ $future := and .PublishDate (gt .PublishDate now) }} {{ $future := and .PublishDate (gt .PublishDate now) }}
{{ $modified := and .PublishDate .Lastmod (lt .PublishDate .Lastmod) }} {{ $modified := and .PublishDate .Lastmod (lt .PublishDate .Lastmod) }}
{{ $readingtime := cond ($page.Param "paige.list.reading_time.hide" | not) .ReadingTime "" }} {{ $readingtime := .ReadingTime }}
{{ $readingtimeclass := $page.Param "paige.list.reading_time.class" | default "mb-0 paige-reading-time text-center text-secondary" }}
{{ $sectionclass := $page.Param "paige.list.section.class" | default "mb-3 paige-page w-100" }} {{ $sectionclass := $page.Param "paige.list.section.class" | default "mb-3 paige-page w-100" }}
{{ $summary := .Summary | htmlUnescape | plainify }} {{ $summary := .Summary | htmlUnescape | plainify }}
{{ $tags := .Params.tags | default slice | uniq }} {{ $tags := .Params.tags | default slice | uniq }}
@ -119,7 +118,7 @@
{{ end }} {{ end }}
{{ with $readingtime }} {{ with $readingtime }}
<p {{ with $readingtimeclass }} class="{{ . }}" {{ end }}>{{ . }} {{ i18n "paige_minutes" . }}</p> <p class="mb-0 paige-reading-time text-center text-secondary">{{ . }} {{ i18n "paige_minutes" . }}</p>
{{ end }} {{ end }}
</section> </section>
{{ end }} {{ end }}

Loading…
Cancel
Save