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

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