Center metadata with text-center

master
Will Faught 4 months ago
parent d5b701659f
commit 140cb59f97

@ -21,21 +21,21 @@
{{ $keywords := sort (append $categories $tags) "LinkTitle" | and ($page.Param "paige.pages.disable_keywords" | not) }} {{ $keywords := sort (append $categories $tags) "LinkTitle" | and ($page.Param "paige.pages.disable_keywords" | not) }}
{{ if or $alert $authors $date $description $first $keywords $last $time $series $title $toc $words }} {{ if or $alert $authors $date $description $first $keywords $last $time $series $title $toc $words }}
<header class="align-items-center d-flex flex-column mw-100" id="paige-page-header"> <header class="mw-100 text-center" id="paige-page-header">
{{ partial "paige/func-include.html" (dict "name" "page-header-first%s.html" "page" $page) | safeHTML }} {{ partial "paige/func-include.html" (dict "name" "page-header-first%s.html" "page" $page) | safeHTML }}
{{ with $title }} {{ with $title }}
<h1 class="fw-bold text-center" id="paige-page-title" {{ if $microdata }} itemprop="headline name" {{ end }}>{{ if $link }}<a href="{{ $link }}">{{ . }}</a>{{ else }}{{ . }}{{ end }}</h1> <h1 class="fw-bold" id="paige-page-title" {{ if $microdata }} itemprop="headline name" {{ end }}>{{ if $link }}<a href="{{ $link }}">{{ . }}</a>{{ else }}{{ . }}{{ end }}</h1>
{{ end }} {{ end }}
{{ with $description }} {{ with $description }}
<p class="lead paige-row-tall text-center" id="paige-page-description" {{ if $microdata }} itemprop="alternativeHeadline description" {{ end }}>{{ . }}</p> <p class="lead paige-row-tall" id="paige-page-description" {{ if $microdata }} itemprop="alternativeHeadline description" {{ end }}>{{ . }}</p>
{{ end }} {{ end }}
{{ if or $authors $date $keywords $time $series }} {{ if or $authors $date $keywords $time $series }}
<div> <div>
{{ with $keywords }} {{ with $keywords }}
<p class="{{ if $normal }} paige-row-short {{ end }} text-center {{ if $normal }} text-secondary {{ end }}" id="paige-page-keywords"> <p class="{{ if $normal }} paige-row-short {{ end }} {{ if $normal }} text-secondary {{ end }}" id="paige-page-keywords">
{{ range $i, $term := . }} {{ range $i, $term := . }}
{{ $kind := false }} {{ $kind := false }}
@ -67,7 +67,7 @@
{{ end }} {{ end }}
{{ with $series }} {{ with $series }}
<p class="paige-row-short text-center text-secondary" id="paige-page-series"> <p class="paige-row-short text-secondary" id="paige-page-series">
{{ range $i, $series := . }} {{ range $i, $series := . }}
{{ if gt $i 0 }} · {{ end }} {{ if gt $i 0 }} · {{ end }}
@ -81,7 +81,7 @@
{{ end }} {{ end }}
{{ with $authors }} {{ with $authors }}
<p class="paige-row-short text-center text-secondary" id="paige-page-authors"> <p class="paige-row-short text-secondary" id="paige-page-authors">
{{ range $i, $author := . }} {{ range $i, $author := . }}
{{ if gt $i 0 }} · {{ end }} {{ if gt $i 0 }} · {{ end }}
@ -95,17 +95,17 @@
{{ end }} {{ end }}
{{ with $date }} {{ with $date }}
<p class="paige-row-short text-center text-secondary" id="paige-page-date"> <p class="paige-row-short text-secondary" id="paige-page-date">
<time datetime="{{ .Format `2006-01-02` }}" {{ if $microdata }} itemprop="datePublished" {{ end }}>{{ time.Format $format . }}</time> <time datetime="{{ .Format `2006-01-02` }}" {{ if $microdata }} itemprop="datePublished" {{ end }}>{{ time.Format $format . }}</time>
</p> </p>
{{ end }} {{ end }}
{{ with $words }} {{ with $words }}
<p class="paige-row-short text-center text-secondary" id="paige-page-word-count" {{ if $microdata }} itemprop="wordCount" {{ end }}>{{ . }} {{ i18n "paige_words" . }}</p> <p class="paige-row-short text-secondary" id="paige-page-word-count" {{ if $microdata }} itemprop="wordCount" {{ end }}>{{ . }} {{ i18n "paige_words" . }}</p>
{{ end }} {{ end }}
{{ with $time }} {{ with $time }}
<p class="paige-row-short text-center text-secondary" id="paige-page-reading-time" {{ if $microdata }} itemprop="timeRequired" {{ end }}>{{ . }} {{ i18n "paige_minutes" . }}</p> <p class="paige-row-short text-secondary" id="paige-page-reading-time" {{ if $microdata }} itemprop="timeRequired" {{ end }}>{{ . }} {{ i18n "paige_minutes" . }}</p>
{{ end }} {{ end }}
</div> </div>
{{ end }} {{ end }}
@ -115,7 +115,7 @@
{{ end }} {{ end }}
{{ if $toc }} {{ if $toc }}
<div class="paige-row-tall" id="paige-page-toc"> <div class="align-items-center d-flex flex-column paige-row-tall text-start" id="paige-page-toc">
<div class="border pe-3 ps-3 pt-3 rounded"> <div class="border pe-3 ps-3 pt-3 rounded">
{{ $page.TableOfContents }} {{ $page.TableOfContents }}
</div> </div>

Loading…
Cancel
Save