Remove paige.reading_time, paige.list.reading_time params
This commit is contained in:
@@ -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>
|
||||
|
@@ -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 }}
|
||||
|
Reference in New Issue
Block a user