Remove paige.list.section params
This commit is contained in:
@@ -263,8 +263,6 @@ paige:
|
|||||||
show: false
|
show: false
|
||||||
pages:
|
pages:
|
||||||
hide: false
|
hide: false
|
||||||
section:
|
|
||||||
class: "mb-3 w-100"
|
|
||||||
math: false # Enable math typesetting
|
math: false # Enable math typesetting
|
||||||
menu:
|
menu:
|
||||||
breakpoint: "sm" # Bootstrap breakpoint at which to display all menu items
|
breakpoint: "sm" # Bootstrap breakpoint at which to display all menu items
|
||||||
|
@@ -33,7 +33,6 @@
|
|||||||
{{ $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 := .ReadingTime }}
|
{{ $readingtime := .ReadingTime }}
|
||||||
{{ $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 }}
|
||||||
{{ $title := .Title | markdownify }}
|
{{ $title := .Title | markdownify }}
|
||||||
@@ -64,9 +63,9 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ $flags = delimit ($flags | uniq) " " }}
|
{{ $flags = delimit ($flags | uniq) " " }}
|
||||||
{{ $sectionclass = delimit (split $sectionclass " " | append $flags | uniq | sort) " " }}
|
{{ $class := delimit (slice "mb-3" "paige-page" "w-100" | append $flags | uniq | sort) " " }}
|
||||||
|
|
||||||
<section {{ with $sectionclass }} class="{{ . }}" {{ end }}>
|
<section class="{{ $class }}">
|
||||||
{{ with $title }}
|
{{ with $title }}
|
||||||
<p class="mb-0 paige-title text-center"><a href="{{ $titlelink }}">{{ . }}</a></p>
|
<p class="mb-0 paige-title text-center"><a href="{{ $titlelink }}">{{ . }}</a></p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Reference in New Issue
Block a user