Organize classes

This commit is contained in:
Will Faught
2025-03-01 15:04:30 -08:00
parent df0fa87350
commit c98ec893cb

View File

@@ -47,7 +47,7 @@
<div class="{{ $class }}"> <div class="{{ $class }}">
{{ with $title }} {{ with $title }}
<p class="paige-row-short paige-page-title text-center"><a href="{{ $link }}">{{ . }}</a></p> <p class="paige-page-title paige-row-short text-center"><a href="{{ $link }}">{{ . }}</a></p>
{{ end }} {{ end }}
{{ with $description }} {{ with $description }}
@@ -55,7 +55,7 @@
{{ end }} {{ end }}
{{ with $summary }} {{ with $summary }}
<p class="fst-italic paige-row-short paige-page-summary text-center">{{ . }}</p> <p class="fst-italic paige-page-summary paige-row-short text-center">{{ . }}</p>
{{ end }} {{ end }}
{{ with $keywords }} {{ with $keywords }}
@@ -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="text-secondary paige-page-keyword-{{ $kind }}">{{ .LinkTitle }}</span> <span class="paige-page-keyword-{{ $kind }} text-secondary">{{ .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-row-short paige-page-series text-center text-secondary"> <p class="paige-page-series paige-row-short text-center 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 text-center paige-row-short text-secondary"> <p class="paige-page-authors paige-row-short text-center text-secondary">
{{ range $i, $author := . }} {{ range $i, $author := . }}
{{ if gt $i 0 }} · {{ end }} {{ if gt $i 0 }} · {{ end }}
@@ -119,7 +119,7 @@
{{ end }} {{ end }}
{{ with $date }} {{ with $date }}
<p class="paige-page-date text-center paige-row-short text-secondary"> <p class="paige-page-date paige-row-short text-center 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 }}