Remove paige.reading_time, paige.list.reading_time params

This commit is contained in:
Will Faught
2023-02-24 21:16:46 -08:00
parent 9ad6a3d9a5
commit 99a16c41fc
3 changed files with 4 additions and 12 deletions

View File

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