Refactor text-center in list items

master
Will Faught 4 months ago
parent 140cb59f97
commit 397296a5bd

@ -42,24 +42,24 @@
{{ $flags = $flags | append "paige-status-published" }} {{ $flags = $flags | append "paige-status-published" }}
{{ end }} {{ end }}
{{ $class := delimit (slice "paige-page" "w-100" | append $flags | uniq | sort) " " }} {{ $class := delimit (slice "paige-page" "text-center" "w-100" | append $flags | uniq | sort) " " }}
{{ $keywords := sort (append $categories $tags) "LinkTitle" | and ($list.Param "paige.subpages.disable_keywords" | not) }} {{ $keywords := sort (append $categories $tags) "LinkTitle" | and ($list.Param "paige.subpages.disable_keywords" | not) }}
<div class="{{ $class }}"> <div class="{{ $class }}">
{{ with $title }} {{ with $title }}
<p class="paige-page-title paige-row-short text-center"><a href="{{ $link }}">{{ . }}</a></p> <p class="paige-page-title paige-row-short"><a href="{{ $link }}">{{ . }}</a></p>
{{ end }} {{ end }}
{{ with $description }} {{ with $description }}
<p class="paige-page-description paige-row-short text-center">{{ . }}</p> <p class="paige-page-description paige-row-short">{{ . }}</p>
{{ end }} {{ end }}
{{ with $summary }} {{ with $summary }}
<p class="fst-italic paige-page-summary paige-row-short text-center">{{ . }}</p> <p class="fst-italic paige-page-summary paige-row-short">{{ . }}</p>
{{ end }} {{ end }}
{{ with $keywords }} {{ with $keywords }}
<p class="paige-page-keywords paige-row-short text-center text-secondary"> <p class="paige-page-keywords paige-row-short text-secondary">
{{ range $i, $term := . }} {{ range $i, $term := . }}
{{ $kind := false }} {{ $kind := false }}
@ -75,7 +75,7 @@
{{ if .RelPermalink }} {{ if .RelPermalink }}
<a class="link-secondary paige-page-keyword-{{ $kind }}" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a> <a class="link-secondary paige-page-keyword-{{ $kind }}" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
{{ else }} {{ else }}
<span class="paige-page-keyword-{{ $kind }} text-secondary">{{ .LinkTitle }}</span> <span class="paige-page-keyword-{{ $kind }}">{{ .LinkTitle }}</span>
{{ end }} {{ end }}
{{ else }} {{ else }}
{{ if gt $i 0 }} {{ end }} {{ if gt $i 0 }} {{ end }}
@ -91,7 +91,7 @@
{{ end }} {{ end }}
{{ with $series }} {{ with $series }}
<p class="paige-page-series paige-row-short text-center text-secondary"> <p class="paige-page-series paige-row-short text-secondary">
{{ range $i, $series := . }} {{ range $i, $series := . }}
{{ if gt $i 0 }} · {{ end }} {{ if gt $i 0 }} · {{ end }}
@ -105,7 +105,7 @@
{{ end }} {{ end }}
{{ with $authors }} {{ with $authors }}
<p class="paige-page-authors paige-row-short text-center text-secondary"> <p class="paige-page-authors paige-row-short text-secondary">
{{ range $i, $author := . }} {{ range $i, $author := . }}
{{ if gt $i 0 }} · {{ end }} {{ if gt $i 0 }} · {{ end }}
@ -119,16 +119,16 @@
{{ end }} {{ end }}
{{ with $date }} {{ with $date }}
<p class="paige-page-date paige-row-short text-center text-secondary"> <p class="paige-page-date paige-row-short text-secondary">
<time datetime="{{ .Format `2006-01-02` }}">{{ time.Format $format . }}</time> <time datetime="{{ .Format `2006-01-02` }}">{{ time.Format $format . }}</time>
</p> </p>
{{ end }} {{ end }}
{{ with $words }} {{ with $words }}
<p class="paige-page-word-count paige-row-short text-center text-secondary">{{ . }} {{ i18n "paige_words" . }}</p> <p class="paige-page-word-count paige-row-short text-secondary">{{ . }} {{ i18n "paige_words" . }}</p>
{{ end }} {{ end }}
{{ with $time }} {{ with $time }}
<p class="paige-page-reading-time paige-row-short text-center text-secondary">{{ . }} {{ i18n "paige_minutes" . }}</p> <p class="paige-page-reading-time paige-row-short text-secondary">{{ . }} {{ i18n "paige_minutes" . }}</p>
{{ end }} {{ end }}
</div> </div>

Loading…
Cancel
Save