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

@@ -33,9 +33,9 @@
{{ end }}
{{ if or $authors $date $keywords $time $series }}
<div id="paige-metadata">
<div id="paige-page-metadata">
{{ with $keywords }}
<p class="{{ if $normal }} paige-row-short {{ end }} text-center {{ if $normal }} text-secondary {{ end }}" id="paige-keywords">
<p class="{{ if $normal }} paige-row-short {{ end }} text-center {{ if $normal }} text-secondary {{ end }}" id="paige-page-keywords">
{{ range $i, $term := . -}}
{{- $kind := false -}}
@@ -48,18 +48,18 @@
{{- if $normal -}}
{{- if gt $i 0 }} · {{ end -}}
<a class="link-secondary paige-keyword paige-keyword-{{ $kind }}" href="{{ .RelPermalink }}" {{ if $microdata }} itemprop="keywords" {{ end }}>{{ .LinkTitle }}</a>
<a class="link-secondary paige-page-keyword paige-page-keyword-{{ $kind }}" href="{{ .RelPermalink }}" {{ if $microdata }} itemprop="keywords" {{ end }}>{{ .LinkTitle }}</a>
{{- else -}}
{{- if gt $i 0 }} {{ end -}}
<a class="badge paige-keyword paige-keyword-{{ $kind }} text-bg-secondary text-decoration-none" href="{{ .RelPermalink }}" {{ if $microdata }} itemprop="keywords" {{ end }}>{{ .LinkTitle }}</a>
<a class="badge paige-page-keyword paige-page-keyword-{{ $kind }} text-bg-secondary text-decoration-none" href="{{ .RelPermalink }}" {{ if $microdata }} itemprop="keywords" {{ end }}>{{ .LinkTitle }}</a>
{{- end -}}
{{- end }}
</p>
{{ end }}
{{ with $series }}
<p class="paige-row-short text-center text-secondary" id="paige-series">
<p class="paige-row-short text-center text-secondary" id="paige-page-series">
{{ range $i, $series := . -}}
{{- if gt $i 0 }} · {{ end -}}
@@ -69,7 +69,7 @@
{{ end }}
{{ with $authors }}
<p class="paige-row-short text-center text-secondary" id="paige-authors">
<p class="paige-row-short text-center text-secondary" id="paige-page-authors">
{{ range $i, $author := . -}}
{{- if gt $i 0 }} · {{ end -}}
@@ -79,23 +79,23 @@
{{ end }}
{{ with $date }}
<p class="paige-row-short text-center text-secondary" id="paige-date">
<p class="paige-row-short text-center text-secondary" id="paige-page-date">
<time datetime="{{ .Format `2006-01-02` }}" {{ if $microdata }} itemprop="datePublished" {{ end }}>{{ time.Format $format . }}</time>
</p>
{{ end }}
{{ with $time }}
<p class="paige-row-short text-center text-secondary" id="paige-reading-time" {{ if $microdata }} itemprop="timeRequired" {{ end }}>{{ . }} {{ i18n "paige_minutes" . }}</p>
<p class="paige-row-short text-center text-secondary" id="paige-page-reading-time" {{ if $microdata }} itemprop="timeRequired" {{ end }}>{{ . }} {{ i18n "paige_minutes" . }}</p>
{{ end }}
</div>
{{ end }}
{{ with $alert }}
<div class="alert alert-{{ .type }} paige-row-tall" id="paige-alert" role="alert">{{ .message | markdownify }}</div>
<div class="alert alert-{{ .type }} paige-row-tall" id="paige-page-alert" role="alert">{{ .message | markdownify }}</div>
{{ end }}
{{ if $toc }}
<div class="paige-row-tall" id="paige-toc">
<div class="paige-row-tall" id="paige-page-toc">
<div class="border pe-3 ps-3 pt-3 rounded">
{{ $page.TableOfContents }}
</div>