Add page, site prefixes to all CSS names

This commit is contained in:
Will Faught
2025-02-08 22:12:05 -08:00
parent 03208bde58
commit aabb52bd64
11 changed files with 141 additions and 136 deletions

View File

@@ -55,7 +55,7 @@
{{ end }}
{{ with $keywords }}
<p class="paige-keywords paige-row-short text-center text-secondary">
<p class="paige-page-keywords paige-row-short text-center text-secondary">
{{ range $i, $term := . -}}
{{- $kind := false -}}
@@ -68,18 +68,18 @@
{{- if $normal -}}
{{- if gt $i 0 }} · {{ end -}}
<a class="link-secondary paige-keyword paige-keyword-{{ $kind }}" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
<a class="link-secondary paige-page-keyword paige-page-keyword-{{ $kind }}" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
{{- else -}}
{{- if gt $i 0 }} {{ end -}}
<a class="badge paige-keyword paige-keyword-{{ $kind }} text-bg-secondary text-decoration-none" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
<a class="badge paige-page-keyword paige-page-keyword-{{ $kind }} text-bg-secondary text-decoration-none" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
{{- end -}}
{{- end }}
</p>
{{ end }}
{{ with $series }}
<p class="paige-row-short paige-series text-center text-secondary">
<p class="paige-row-short paige-page-series text-center text-secondary">
{{ range $i, $series := . -}}
{{- if gt $i 0 }} · {{ end -}}
@@ -89,7 +89,7 @@
{{ end }}
{{ with $authors }}
<p class="paige-authors text-center paige-row-short text-secondary">
<p class="paige-page-authors text-center paige-row-short text-secondary">
{{ range $i, $author := . -}}
{{- if gt $i 0 }} · {{ end -}}
@@ -99,12 +99,12 @@
{{ end }}
{{ with $date }}
<p class="paige-date text-center paige-row-short text-secondary">
<p class="paige-page-date text-center paige-row-short text-secondary">
<time datetime="{{ .Format `2006-01-02` }}">{{ time.Format $format . }}</time>
</p>
{{ end }}
{{ with $time }}
<p class="paige-reading-time paige-row-short text-center text-secondary">{{ . }} {{ i18n "paige_minutes" . }}</p>
<p class="paige-page-reading-time paige-row-short text-center text-secondary">{{ . }} {{ i18n "paige_minutes" . }}</p>
{{ end }}
</div>