Use consistent margins for page header, content, footer

This commit is contained in:
Will Faught
2024-07-12 17:30:08 -07:00
parent 404e818027
commit 8c09422aa0
3 changed files with 3 additions and 3 deletions

View File

@@ -13,7 +13,7 @@
{{ end }} {{ end }}
{{ end }} {{ end }}
<footer class="mb-3 text-center text-secondary" id="paige-page-footer"> <footer class="mt-3 text-center text-secondary" id="paige-page-footer">
{{ if templates.Exists "partials/paige/page-footer-first.html" }} {{ if templates.Exists "partials/paige/page-footer-first.html" }}
{{ partial "paige/page-footer-first.html" . }} {{ partial "paige/page-footer-first.html" . }}
{{ end }} {{ end }}

View File

@@ -1,6 +1,6 @@
{{ $page := . }} {{ $page := . }}
{{ $class := slice }} {{ $class := slice "my-3" }}
{{ $content := $page.Content | replaceRE `(<h[1-6] id="([^"]+)".+)(</h[1-6]+>)` (printf `${1}<a aria-label="%s" class="paige-header-link" href="#${2}"></a>${3}` (i18n "paige_aria_section_link")) }} {{ $content := $page.Content | replaceRE `(<h[1-6] id="([^"]+)".+)(</h[1-6]+>)` (printf `${1}<a aria-label="%s" class="paige-header-link" href="#${2}"></a>${3}` (i18n "paige_aria_section_link")) }}
{{ $draft := $page.Draft }} {{ $draft := $page.Draft }}
{{ $expired := and $page.ExpiryDate (lt $page.ExpiryDate now) }} {{ $expired := and $page.ExpiryDate (lt $page.ExpiryDate now) }}

View File

@@ -13,7 +13,7 @@
{{ $credit = markdownify $credit }} {{ $credit = markdownify $credit }}
{{ end }} {{ end }}
<footer class="mb-3 text-center text-secondary" id="paige-footer"> <footer class="my-3 text-center text-secondary" id="paige-footer">
{{ if templates.Exists "partials/paige/footer-first.html" }} {{ if templates.Exists "partials/paige/footer-first.html" }}
{{ partial "paige/footer-first.html" . }} {{ partial "paige/footer-first.html" . }}
{{ end }} {{ end }}