Add page, site prefixes to all CSS names

master
Will Faught 5 months ago
parent 03208bde58
commit aabb52bd64

@ -1035,107 +1035,112 @@ Use CSS selectors to extend the default styling.
Page identifiers: Page identifiers:
<dl> <dl>
<dt><code>#paige-alert</code></dt> <dt><code>#paige-page-alert</code></dt>
<dd>The page alert.</dd> <dd>The page alert.</dd>
<dt><code>#paige-authors</code></dt> <dt><code>#paige-page-authors</code></dt>
<dd>The page authors.</dd> <dd>The page authors.</dd>
<dt><code>#paige-breadcrumbs</code></dt> <dt><code>#paige-page-collections</code></dt>
<dd>The site breadcrumbs.</dd> <dd>The page collections.</dd>
<dt><code>#paige-collections</code></dt> <dt><code>#paige-page-collections-header</code></dt>
<dd>The site collection pages.</dd> <dd>The page collections header.</dd>
<dt><code>#paige-collections-header</code></dt> <dt><code>#paige-page-content</code></dt>
<dd>The site collection pages header.</dd>
<dt><code>#paige-content</code></dt>
<dd>The page content.</dd> <dd>The page content.</dd>
<dt><code>#paige-copyright</code></dt> <dt><code>#paige-page-date</code></dt>
<dd>The site copyright.</dd>
<dt><code>#paige-credit</code></dt>
<dd>The site credit.</dd>
<dt><code>#paige-date</code></dt>
<dd>The page date.</dd> <dd>The page date.</dd>
<dt><code>#paige-edit</code></dt>
<dd>The page edit link.</dd>
<dt><code>#paige-file</code></dt>
<dd>The page edit and history links.</dd>
<dt><code>#paige-history</code></dt>
<dd>The page history link.</dd>
<dt><code>#paige-keywords</code></dt>
<dd>The page keywords.</dd>
<dt><code>#paige-license</code></dt>
<dd>The site license.</dd>
<dt><code>#paige-menu</code></dt>
<dd>The site menu.</dd>
<dt><code>#paige-metadata</code></dt>
<dd>The page metadata.</dd>
<dt><code>#paige-next</code></dt>
<dd>The next page link.</dd>
<dt><code>#paige-page-description</code></dt> <dt><code>#paige-page-description</code></dt>
<dd>The page description.</dd> <dd>The page description.</dd>
<dt><code>#paige-page-edit</code></dt>
<dd>The page edit link.</dd>
<dt><code>#paige-page-file</code></dt>
<dd>The container of the page edit and history links.</dd>
<dt><code>#paige-page-footer</code></dt> <dt><code>#paige-page-footer</code></dt>
<dd>The page footer that contains the page edit, history, next, and previous links.</dd> <dd>The page footer that contains the page edit, history, next, and previous links.</dd>
<dt><code>#paige-page-header</code></dt> <dt><code>#paige-page-header</code></dt>
<dd>The page header that contains the page title, description, metadata, and table of contents.</dd> <dd>The page header that contains the page title, description, metadata, and table of contents.</dd>
<dt><code>#paige-page-title</code></dt> <dt><code>#paige-page-history</code></dt>
<dd>The page title.</dd> <dd>The page history link.</dd>
<dt><code>#paige-subpages</code></dt> <dt><code>#paige-page-keywords</code></dt>
<dd>The page sub-pages.</dd> <dd>The page keywords.</dd>
<dt><code>#paige-subpages-header</code></dt> <dt><code>#paige-page-metadata</code></dt>
<dd>The page subpages header.</dd> <dd>The page metadata.</dd>
<dt><code>#paige-pagination</code></dt> <dt><code>#paige-page-next</code></dt>
<dd>The next page link.</dd>
<dt><code>#paige-page-pages</code></dt>
<dd>The page pages.</dd>
<dt><code>#paige-page-pages-header</code></dt>
<dd>The page pages header.</dd>
<dt><code>#paige-page-pagination</code></dt>
<dd>The pagination of sub-pages.</dd> <dd>The pagination of sub-pages.</dd>
<dt><code>#paige-prev</code></dt> <dt><code>#paige-page-prev</code></dt>
<dd>The previous page link.</dd> <dd>The previous page link.</dd>
<dt><code>#paige-reading-time</code></dt> <dt><code>#paige-page-reading-time</code></dt>
<dd>The page reading time.</dd> <dd>The page reading time.</dd>
<dt><code>#paige-sections</code></dt> <dt><code>#paige-page-sections</code></dt>
<dd>The page section sub-pages.</dd> <dd>The page sections.</dd>
<dt><code>#paige-sections-header</code></dt> <dt><code>#paige-page-sections-header</code></dt>
<dd>The page section sub-pages header.</dd> <dd>The page sections header.</dd>
<dt><code>#paige-series</code></dt> <dt><code>#paige-page-series</code></dt>
<dd>The page series.</dd> <dd>The page series.</dd>
<dt><code>#paige-siblings</code></dt> <dt><code>#paige-page-siblings</code></dt>
<dd>The page next and previous links.</dd> <dd>The container of the page next and previous links.</dd>
<dt><code>#paige-page-title</code></dt>
<dd>The page title.</dd>
<dt><code>#paige-page-toc</code></dt>
<dd>The page table of contents.</dd>
</dl>
Site identifiers:
<dl>
<dt><code>#paige-site-breadcrumbs</code></dt>
<dd>The site breadcrumbs.</dd>
<dt><code>#paige-site-copyright</code></dt>
<dd>The site copyright.</dd>
<dt><code>#paige-site-credit</code></dt>
<dd>The site credit.</dd>
<dt><code>#paige-site-description</code></dt> <dt><code>#paige-site-description</code></dt>
<dd>The site description.</dd> <dd>The site description.</dd>
<dt><code>#paige-site-footer</code></dt> <dt><code>#paige-site-footer</code></dt>
<dd>The site footer that contains the site copyright, license, and credit.</dd> <dd>The site footer that contains the site copyright, license, and credit.</dd>
<dt><code>#paige-site-header</code></dt> <dt><code>#paige-site-header</code></dt>
<dd>The site header that contains the site title, description, menu, and breadcrumbs.</dd> <dd>The site header that contains the site title, description, menu, and breadcrumbs.</dd>
<dt><code>#paige-site-license</code></dt>
<dd>The site license.</dd>
<dt><code>#paige-site-menu</code></dt>
<dd>The site menu.</dd>
<dt><code>#paige-site-title</code></dt> <dt><code>#paige-site-title</code></dt>
<dd>The site title.</dd> <dd>The site title.</dd>
<dt><code>#paige-toc</code></dt>
<dd>The table of contents.</dd>
</dl> </dl>
Page classes: Page classes:
<dl> <dl>
<dt><code>.paige-keyword</code></dt> <dt><code>.paige-page-keyword</code></dt>
<dd>A keyword.</dd> <dd>A keyword.</dd>
<dt><code>.paige-keyword-category</code></dt> <dt><code>.paige-page-keyword-category</code></dt>
<dd>A category keyword.</dd> <dd>A category keyword.</dd>
<dt><code>.paige-keyword-tag</code></dt> <dt><code>.paige-page-keyword-tag</code></dt>
<dd>A tag keyword.</dd> <dd>A tag keyword.</dd>
<dt><code>.paige-keywords</code></dt> <dt><code>.paige-page-keywords</code></dt>
<dd>The keywords.</dd> <dd>The keywords.</dd>
</dl> </dl>
Sub-page classes: Sub-page classes:
<dl> <dl>
<dt><code>.paige-authors</code></dt> <dt><code>.paige-page-authors</code></dt>
<dd>The authors.</dd> <dd>The authors.</dd>
<dt><code>.paige-date</code></dt> <dt><code>.paige-page-date</code></dt>
<dd>The date.</dd> <dd>The date.</dd>
<dt><code>.paige-description</code></dt> <dt><code>.paige-description</code></dt>
<dd>The description.</dd> <dd>The description.</dd>
<dt><code>.paige-metadata</code></dt> <dt><code>.paige-page-metadata</code></dt>
<dd>The metadata.</dd> <dd>The metadata.</dd>
<dt><code>.paige-page</code></dt> <dt><code>.paige-page</code></dt>
<dd>A page.</dd> <dd>A page.</dd>
<dt><code>.paige-reading-time</code></dt> <dt><code>.paige-page-reading-time</code></dt>
<dd>The reading time.</dd> <dd>The reading time.</dd>
<dt><code>.paige-series</code></dt> <dt><code>.paige-page-series</code></dt>
<dd>The series.</dd> <dd>The series.</dd>
<dt><code>.paige-summary</code></dt> <dt><code>.paige-summary</code></dt>
<dd>The summary.</dd> <dd>The summary.</dd>
@ -1234,7 +1239,7 @@ try the following in `yoursite/hugo.toml`:
```toml ```toml
[params.paige] [params.paige]
style = """ style = """
#paige-content > * { margin-left: auto; margin-right: auto; max-width: 40rem; } #paige-page-content > * { margin-left: auto; margin-right: auto; max-width: 40rem; }
""" """
``` ```
@ -1249,11 +1254,11 @@ try the following in `yoursite/hugo.toml`:
```toml ```toml
[params.paige] [params.paige]
style = """ style = """
#paige-content > * { margin-left: auto; margin-right: auto; max-width: 40rem; } #paige-page-content > * { margin-left: auto; margin-right: auto; max-width: 40rem; }
#paige-content > img, #paige-page-content > img,
#paige-content > .paige-image, #paige-page-content > .paige-image,
#paige-content > .paige-vimeo, #paige-page-content > .paige-vimeo,
#paige-content > .paige-youtube { max-width: 100%; } #paige-page-content > .paige-youtube { max-width: 100%; }
""" """
``` ```

@ -8,25 +8,25 @@ tags = ["singles", "style"]
title = "Style Data" title = "Style Data"
[paige] [paige]
style = """ style = """
#paige-authors,
#paige-breadcrumbs,
#paige-content,
#paige-copyright,
#paige-credit,
#paige-date,
#paige-description, #paige-description,
#paige-file, #paige-page-authors,
#paige-keywords, #paige-page-content,
#paige-license, #paige-page-date,
#paige-menu,
#paige-page-title,
#paige-page-description, #paige-page-description,
#paige-reading-time, #paige-page-file,
#paige-series, #paige-page-keywords,
#paige-siblings, #paige-page-reading-time,
#paige-site-title, #paige-page-series,
#paige-page-siblings,
#paige-page-title,
#paige-page-toc,
#paige-site-breadcrumbs,
#paige-site-copyright,
#paige-site-credit,
#paige-site-description, #paige-site-description,
#paige-toc { #paige-site-license,
#paige-site-menu,
#paige-site-title {
font-style: italic; font-style: italic;
} }
""" """
@ -101,25 +101,25 @@ This page has the following parameters:
[paige] [paige]
style = """ style = """
#paige-authors,
#paige-breadcrumbs,
#paige-content,
#paige-copyright,
#paige-credit,
#paige-date,
#paige-description, #paige-description,
#paige-file, #paige-page-authors,
#paige-keywords, #paige-page-content,
#paige-license, #paige-page-date,
#paige-menu,
#paige-page-title,
#paige-page-description, #paige-page-description,
#paige-reading-time, #paige-page-file,
#paige-series, #paige-page-keywords,
#paige-siblings, #paige-page-reading-time,
#paige-site-title, #paige-page-series,
#paige-page-siblings,
#paige-page-title,
#paige-page-toc,
#paige-site-breadcrumbs,
#paige-site-copyright,
#paige-site-credit,
#paige-site-description, #paige-site-description,
#paige-toc { #paige-site-license,
#paige-site-menu,
#paige-site-title {
font-style: italic; font-style: italic;
} }
""" """

@ -4,7 +4,7 @@
{{ partial "paige/page.html" $page }} {{ partial "paige/page.html" $page }}
{{ with $page.Pages }} {{ with $page.Pages }}
<div id="paige-subpages"> <div id="paige-page-pages">
<ul class="list-inline text-center"> <ul class="list-inline text-center">
{{ range (sort . "LinkTitle") }} {{ range (sort . "LinkTitle") }}
<li class="list-inline-item"> <li class="list-inline-item">

@ -55,7 +55,7 @@
{{ end }} {{ end }}
{{ with $keywords }} {{ 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 := . -}} {{ range $i, $term := . -}}
{{- $kind := false -}} {{- $kind := false -}}
@ -68,18 +68,18 @@
{{- if $normal -}} {{- if $normal -}}
{{- if gt $i 0 }} · {{ end -}} {{- 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 -}} {{- else -}}
{{- if gt $i 0 }} {{ end -}} {{- 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 -}}
{{- end }} {{- end }}
</p> </p>
{{ end }} {{ end }}
{{ with $series }} {{ 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 := . -}} {{ range $i, $series := . -}}
{{- if gt $i 0 }} · {{ end -}} {{- if gt $i 0 }} · {{ end -}}
@ -89,7 +89,7 @@
{{ end }} {{ end }}
{{ with $authors }} {{ 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 := . -}} {{ range $i, $author := . -}}
{{- if gt $i 0 }} · {{ end -}} {{- if gt $i 0 }} · {{ end -}}
@ -99,12 +99,12 @@
{{ end }} {{ end }}
{{ with $date }} {{ 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> <time datetime="{{ .Format `2006-01-02` }}">{{ time.Format $format . }}</time>
</p> </p>
{{ end }} {{ end }}
{{ with $time }} {{ 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 }} {{ end }}
</div> </div>

@ -7,7 +7,7 @@
{{ $pager := .pager }} {{ $pager := .pager }}
{{ if or $pager.HasPrev $pager.HasNext }} {{ if or $pager.HasPrev $pager.HasNext }}
<div id="paige-pagination"> <div id="paige-page-pagination">
<div class="d-flex justify-content-center"> <div class="d-flex justify-content-center">
<nav aria-label="{{ i18n `paige_page_list_navigation` }}"> <nav aria-label="{{ i18n `paige_page_list_navigation` }}">
<ul class="pagination"> <ul class="pagination">
@ -58,9 +58,9 @@
{{ end }} {{ end }}
{{ with $collections }} {{ with $collections }}
<div id="paige-collections"> <div id="paige-page-collections">
{{ if or $sections $pages }} {{ if or $sections $pages }}
<h2 class="h5 text-center" id="paige-collections-header">{{ i18n "paige_collections" }}</h2> <h2 class="h5 text-center" id="paige-page-collections-header">{{ i18n "paige_collections" }}</h2>
{{ end }} {{ end }}
{{ if or $sections $pages }} {{ if or $sections $pages }}
@ -80,9 +80,9 @@
{{ end }} {{ end }}
{{ with $sections }} {{ with $sections }}
<div id="paige-sections"> <div id="paige-page-sections">
{{ if or $collections $pages }} {{ if or $collections $pages }}
<h2 class="h5 text-center" id="paige-sections-header">{{ i18n "paige_sections" }}</h2> <h2 class="h5 text-center" id="paige-page-sections-header">{{ i18n "paige_sections" }}</h2>
{{ end }} {{ end }}
{{ if $pages }} {{ if $pages }}
@ -102,9 +102,9 @@
{{ end }} {{ end }}
{{ with $pages }} {{ with $pages }}
<div id="paige-subpages"> <div id="paige-page-pages">
{{ if or $collections $sections }} {{ if or $collections $sections }}
<h2 class="h5 text-center" id="paige-subpages-header">{{ i18n "paige_pages" }}</h2> <h2 class="h5 text-center" id="paige-page-pages-header">{{ i18n "paige_pages" }}</h2>
{{ end }} {{ end }}
{{ $pager := $page.Paginate . }} {{ $pager := $page.Paginate . }}

@ -22,15 +22,15 @@
{{ partial "paige/func-include.html" (dict "name" "page-footer-first%s.html" "page" $page) }} {{ partial "paige/func-include.html" (dict "name" "page-footer-first%s.html" "page" $page) }}
{{ if or $edit $history }} {{ if or $edit $history }}
<div id="paige-file"> <div id="paige-page-file">
{{ with $edit }} {{ with $edit }}
<div class="paige-row-short text-center text-secondary" id="paige-edit"> <div class="paige-row-short text-center text-secondary" id="paige-page-edit">
<a class="link-secondary" href="{{ . }}">{{ i18n "paige_edit_this_page" }}</a> <a class="link-secondary" href="{{ . }}">{{ i18n "paige_edit_this_page" }}</a>
</div> </div>
{{ end }} {{ end }}
{{ with $history }} {{ with $history }}
<div class="paige-row-short text-center text-secondary" id="paige-history"> <div class="paige-row-short text-center text-secondary" id="paige-page-history">
<a class="link-secondary" href="{{ . }}">{{ i18n "paige_edit_history" }}</a> <a class="link-secondary" href="{{ . }}">{{ i18n "paige_edit_history" }}</a>
</div> </div>
{{ end }} {{ end }}
@ -38,13 +38,13 @@
{{ end }} {{ end }}
{{ if or $next $prev }} {{ if or $next $prev }}
<div id="paige-siblings"> <div id="paige-page-siblings">
{{ with $prev }} {{ with $prev }}
<div class="paige-row-short text-center text-secondary" id="paige-next"><a class="link-secondary" href="{{ .Permalink }}">{{ .LinkTitle }}</a> &rsaquo;</div> <div class="paige-row-short text-center text-secondary" id="paige-page-next"><a class="link-secondary" href="{{ .Permalink }}">{{ .LinkTitle }}</a> &rsaquo;</div>
{{ end }} {{ end }}
{{ with $next }} {{ with $next }}
<div class="paige-row-short text-center text-secondary" id="paige-prev">&lsaquo; <a class="link-secondary" href="{{ .Permalink }}">{{ .LinkTitle }}</a></div> <div class="paige-row-short text-center text-secondary" id="paige-page-prev">&lsaquo; <a class="link-secondary" href="{{ .Permalink }}">{{ .LinkTitle }}</a></div>
{{ end }} {{ end }}
</div> </div>
{{ end }} {{ end }}

@ -33,9 +33,9 @@
{{ end }} {{ end }}
{{ if or $authors $date $keywords $time $series }} {{ if or $authors $date $keywords $time $series }}
<div id="paige-metadata"> <div id="paige-page-metadata">
{{ with $keywords }} {{ 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 := . -}} {{ range $i, $term := . -}}
{{- $kind := false -}} {{- $kind := false -}}
@ -48,18 +48,18 @@
{{- if $normal -}} {{- if $normal -}}
{{- if gt $i 0 }} · {{ end -}} {{- 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 -}} {{- else -}}
{{- if gt $i 0 }} {{ end -}} {{- 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 -}}
{{- end }} {{- end }}
</p> </p>
{{ end }} {{ end }}
{{ with $series }} {{ 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 := . -}} {{ range $i, $series := . -}}
{{- if gt $i 0 }} · {{ end -}} {{- if gt $i 0 }} · {{ end -}}
@ -69,7 +69,7 @@
{{ end }} {{ end }}
{{ with $authors }} {{ 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 := . -}} {{ range $i, $author := . -}}
{{- if gt $i 0 }} · {{ end -}} {{- if gt $i 0 }} · {{ end -}}
@ -79,23 +79,23 @@
{{ end }} {{ end }}
{{ with $date }} {{ 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> <time datetime="{{ .Format `2006-01-02` }}" {{ if $microdata }} itemprop="datePublished" {{ end }}>{{ time.Format $format . }}</time>
</p> </p>
{{ end }} {{ end }}
{{ with $time }} {{ 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 }} {{ end }}
</div> </div>
{{ end }} {{ end }}
{{ with $alert }} {{ 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 }} {{ end }}
{{ if $toc }} {{ 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"> <div class="border pe-3 ps-3 pt-3 rounded">
{{ $page.TableOfContents }} {{ $page.TableOfContents }}
</div> </div>

@ -48,7 +48,7 @@
{{ partial "paige/page-header.html" $page }} {{ partial "paige/page-header.html" $page }}
{{ with $content }} {{ with $content }}
<main class="mw-100" id="paige-content">{{ . | safeHTML }}</main> <main class="mw-100" id="paige-page-content">{{ . | safeHTML }}</main>
{{ end }} {{ end }}
{{ partial "paige/page-footer.html" $page }} {{ partial "paige/page-footer.html" $page }}

@ -20,15 +20,15 @@
{{ partial "paige/func-include.html" (dict "name" "site-footer-first%s.html" "page" $page) }} {{ partial "paige/func-include.html" (dict "name" "site-footer-first%s.html" "page" $page) }}
{{ with $copyright }} {{ with $copyright }}
<p class="paige-row-short text-center text-secondary" id="paige-copyright" {{ if $microdata }} itemprop="copyrightNotice" {{ end }}>{{ . }}</p> <p class="paige-row-short text-center text-secondary" id="paige-site-copyright" {{ if $microdata }} itemprop="copyrightNotice" {{ end }}>{{ . }}</p>
{{ end }} {{ end }}
{{ with $license }} {{ with $license }}
<p class="paige-row-short text-center text-secondary" id="paige-license">{{ . }}</p> <p class="paige-row-short text-center text-secondary" id="paige-site-license">{{ . }}</p>
{{ end }} {{ end }}
{{ with $credit }} {{ with $credit }}
<p class="paige-row-short text-center text-secondary" id="paige-credit">{{ . }}</p> <p class="paige-row-short text-center text-secondary" id="paige-site-credit">{{ . }}</p>
{{ end }} {{ end }}
{{ partial "paige/func-include.html" (dict "name" "site-footer-last%s.html" "page" $page) }} {{ partial "paige/func-include.html" (dict "name" "site-footer-last%s.html" "page" $page) }}

@ -48,7 +48,7 @@
{{ if $menu }} {{ if $menu }}
{{ with site.Menus.main }} {{ with site.Menus.main }}
<nav aria-label="{{ i18n `paige_menu` }}" class="paige-row-tall" id="paige-menu"> <nav aria-label="{{ i18n `paige_menu` }}" class="paige-row-tall" id="paige-site-menu">
<ul class="align-items-center justify-content-center nav {{ if $pills }} nav-pills {{ else if $tabs }} nav-tabs {{ else if $underline }} nav-underline {{ end }}"> <ul class="align-items-center justify-content-center nav {{ if $pills }} nav-pills {{ else if $tabs }} nav-tabs {{ else if $underline }} nav-underline {{ end }}">
{{ range . }} {{ range . }}
{{ $menuPath := strings.TrimPrefix $basePath .URL }} {{ $menuPath := strings.TrimPrefix $basePath .URL }}
@ -110,7 +110,7 @@
{{ $pages = sort $pages "LinkTitle" }} {{ $pages = sort $pages "LinkTitle" }}
<nav aria-label="{{ i18n `paige_menu` }}" class="paige-row-tall" id="paige-menu"> <nav aria-label="{{ i18n `paige_menu` }}" class="paige-row-tall" id="paige-site-menu">
<ul class="align-items-center justify-content-center nav {{ if $pills }} nav-pills {{ else if $tabs }} nav-tabs {{ else if $underline }} nav-underline {{ end }}"> <ul class="align-items-center justify-content-center nav {{ if $pills }} nav-pills {{ else if $tabs }} nav-tabs {{ else if $underline }} nav-underline {{ end }}">
{{ with $title }} {{ with $title }}
{{ $active := eq $page.Section "" }} {{ $active := eq $page.Section "" }}
@ -139,7 +139,7 @@
{{ end }} {{ end }}
{{ with $breadcrumbs }} {{ with $breadcrumbs }}
<nav aria-label="{{ i18n `paige_breadcrumbs` }}" class="paige-row-tall" id="paige-breadcrumbs"> <nav aria-label="{{ i18n `paige_breadcrumbs` }}" class="paige-row-tall" id="paige-site-breadcrumbs">
<div class="d-flex justify-content-center"> <div class="d-flex justify-content-center">
<ol class="breadcrumb mb-0"> <ol class="breadcrumb mb-0">
{{ $reverse := .Reverse }} {{ $reverse := .Reverse }}

@ -73,7 +73,7 @@ blockquote > p:last-of-type {
.paige-row-short:last-child, .paige-row-short:last-child,
.paige-row-tall, .paige-row-tall,
.paige-video, .paige-video,
#paige-content > *, #paige-page-content > *,
table { table {
margin-bottom: 1rem; margin-bottom: 1rem;
} }

Loading…
Cancel
Save