Use config to hide values

This commit is contained in:
Will Faught
2024-07-17 18:25:34 -07:00
parent b17519532a
commit ada7e4c8c1
18 changed files with 491 additions and 419 deletions

View File

@@ -1,21 +1,21 @@
{{ $page := . }}
{{ $authors := partial "paige/authors.html" $page }}
{{ $authors := partial "paige/authors.html" $page | and ($page.Parent.Param "paige.list_page.hide_authors" | not) }}
{{ $categories := $page.GetTerms "categories" }}
{{ $date := $page.PublishDate }}
{{ $dateformat := $page.Param "paige.date_format" | default ":date_long" }}
{{ $description := $page.Description | markdownify | plainify | htmlUnescape }}
{{ $date := $page.PublishDate | and ($page.Parent.Param "paige.list_page.hide_date" | not) }}
{{ $dateformat := $page.Parent.Param "paige.date_format" | default ":date_long" }}
{{ $description := $page.Description | markdownify | plainify | htmlUnescape | and ($page.Parent.Param "paige.list_page.hide_description" | not) }}
{{ $draft := $page.Draft }}
{{ $expired := and $page.ExpiryDate (lt $page.ExpiryDate now) }}
{{ $flags := slice }}
{{ $future := and $page.PublishDate (gt $page.PublishDate now) }}
{{ $modified := and $page.PublishDate $page.Lastmod (lt $page.PublishDate $page.Lastmod) }}
{{ $readingtime := $page.ReadingTime }}
{{ $series := $page.GetTerms "series" }}
{{ $summary := $page.Summary | markdownify | plainify | htmlUnescape }}
{{ $readingtime := $page.ReadingTime | and ($page.Parent.Param "paige.list_page.hide_reading_time" | not) }}
{{ $series := $page.GetTerms "series" | and ($page.Parent.Param "paige.list_page.hide_series" | not) }}
{{ $summary := $page.Summary | markdownify | plainify | htmlUnescape | and ($page.Parent.Param "paige.list_page.hide_summary" | not) }}
{{ $tags := $page.GetTerms "tags" }}
{{ $textkeywords := eq ($page.Param "paige.keyword_style" | default "text") "text" }}
{{ $title := $page.Title | markdownify | plainify | htmlUnescape }}
{{ $textkeywords := eq ($page.Parent.Param "paige.keyword_style" | default "text") "text" }}
{{ $title := $page.Title | markdownify | plainify | htmlUnescape | and ($page.Parent.Param "paige.list_page.hide_title" | not) }}
{{ $titlelink := $page.RelPermalink }}
{{ if $draft }}
@@ -38,25 +38,25 @@
{{ $flags = $flags | append "paige-published" }}
{{ end }}
{{ $flags = delimit ($flags | uniq) " " }}
{{ $class := delimit (slice "mb-3" "paige-page" "w-100" | append $flags | uniq | sort) " " }}
{{ $class := delimit (slice "paige-page" "w-100" | append $flags | uniq | sort) " " }}
{{ $keywords := sort (append $categories $tags) "Title" | and ($page.Parent.Param "paige.list_page.hide_keywords" | not) }}
<div class="{{ $class }}">
{{ with $title }}
<p class="mb-0 paige-title text-center"><a href="{{ $titlelink }}">{{ . }}</a></p>
<p class="paige-row-narrow paige-title text-center"><a href="{{ $titlelink }}">{{ . }}</a></p>
{{ end }}
{{ with $description }}
<p class="mb-0 paige-description text-center">{{ . }}</p>
<p class="paige-description paige-row-narrow text-center">{{ . }}</p>
{{ end }}
{{ with $summary }}
<p class="fst-italic mb-0 paige-summary text-center">{{ . }}</p>
<p class="fst-italic paige-row-narrow paige-summary text-center">{{ . }}</p>
{{ end }}
{{ if or $categories $tags }}
<p class="mb-0 paige-keywords text-center text-secondary">
{{ range $i, $term := sort (append $categories $tags) "LinkTitle" -}}
{{ with $keywords }}
<p class="paige-keywords paige-row-narrow text-center text-secondary">
{{ range $i, $term := . -}}
{{- if $textkeywords -}}
{{- if gt $i 0 }} · {{ end -}}
@@ -71,7 +71,7 @@
{{ end }}
{{ with $series }}
<p class="mb-0 paige-series text-center text-secondary">
<p class="paige-row-narrow paige-series text-center text-secondary">
{{ range $i, $series := . -}}
{{- if gt $i 0 }} · {{ end -}}
@@ -81,7 +81,7 @@
{{ end }}
{{ with $authors }}
<p class="mb-0 paige-authors text-center text-secondary">
<p class="paige-authors text-center paige-row-narrow text-secondary">
{{ range $i, $author := . -}}
{{- if gt $i 0 }} · {{ end -}}
@@ -91,12 +91,12 @@
{{ end }}
{{ with $date }}
<p class="mb-0 paige-date text-center text-secondary">
<p class="paige-date text-center paige-row-narrow text-secondary">
<time datetime="{{ .Format `2006-01-02` }}">{{ time.Format $dateformat . }}</time>
</p>
{{ end }}
{{ with $readingtime }}
<p class="mb-0 paige-reading-time text-center text-secondary">{{ . }} {{ i18n "paige_minutes" . }}</p>
<p class="paige-reading-time paige-row-narrow text-center text-secondary">{{ . }} {{ i18n "paige_minutes" . }}</p>
{{ end }}
</div>

View File

@@ -40,8 +40,8 @@
{{ end }}
{{ $collections := slice }}
{{ $pages := $page.RegularPages }}
{{ $sections := $page.Sections }}
{{ $pages := $page.RegularPages | and ($page.Param "paige.list_page.hide_pages" | not) }}
{{ $sections := $page.Sections | and ($page.Param "paige.list_page.hide_sections" | not) }}
{{ if $page.IsHome }}
{{ range $name, $taxonomy := site.Taxonomies }}
@@ -51,6 +51,8 @@
{{ end }}
{{ end }}
{{ $collections = $collections | and ($page.Param "paige.list_page.hide_collections" | not) }}
{{ if and (not $pages) (in (slice "taxonomy" "term") $page.Kind) }}
{{ $pages = $page.Pages }}
{{ end }}

View File

@@ -1,59 +1,52 @@
{{ $page := . }}
{{ $fileediturl := $page.Param "paige.file_edit_url" }}
{{ $filehistoryurl := $page.Param "paige.file_history_url" }}
{{ $file := false }}
{{ $fileediturl := $page.Param "paige.file_edit_url" | and ($page.Param "paige.page.hide_edit" | not) }}
{{ $filehistoryurl := $page.Param "paige.file_history_url" | and ($page.Param "paige.page.hide_history" | not) }}
{{ $first := templates.Exists "partials/paige/page-footer-first.html" }}
{{ $last := templates.Exists "partials/paige/page-footer-last.html" }}
{{ $next := $page.NextInSection }}
{{ $prev := $page.PrevInSection }}
{{ $next := $page.NextInSection | and ($page.Param "paige.page.hide_next" | not) }}
{{ $prev := $page.PrevInSection | and ($page.Param "paige.page.hide_prev" | not) }}
{{ if $page.File }}
{{ if $fileediturl }}
{{ $file = true }}
{{ $fileediturl = printf $fileediturl $page.File.Path }}
{{ end }}
{{ if $filehistoryurl }}
{{ $file = true }}
{{ $filehistoryurl = printf $filehistoryurl $page.File.Path }}
{{ end }}
{{ end }}
{{ if or $file $first $last $next $prev }}
<footer class="mt-3 mw-100 text-center text-secondary" id="paige-page-footer">
{{ if or $fileediturl $filehistoryurl $first $last $next $prev }}
<footer class="mw-100" id="paige-page-footer">
{{ if $first }}
{{ partial "paige/page-footer-first.html" . }}
{{ end }}
{{ if $file }}
<div class="mb-3" id="paige-file">
{{ if or $fileediturl $filehistoryurl }}
<div id="paige-file">
{{ if $fileediturl }}
<p class="mb-0" id="paige-file-edit">
<div class="paige-row-narrow text-center text-secondary" id="paige-edit">
<a class="link-secondary" href="{{ $fileediturl | safeURL }}">{{ i18n "paige_edit_this_page" }}</a>
</p>
</div>
{{ end }}
{{ if $filehistoryurl }}
<p class="mb-0" id="paige-file-history">
<div class="paige-row-narrow text-center text-secondary" id="paige-history">
<a class="link-secondary" href="{{ $filehistoryurl | safeURL }}">{{ i18n "paige_edit_history" }}</a>
</p>
</div>
{{ end }}
</div>
{{ end }}
{{ if or $next $prev }}
<div id="paige-prev-next">
<div id="paige-siblings">
{{ with $prev }}
<p class="mb-0" id="paige-next">
<a class="link-secondary" href="{{ .Permalink }}">{{ .Title }}</a> &rsaquo;
</p>
<div class="paige-row-narrow text-center text-secondary" id="paige-next"><a class="link-secondary" href="{{ .Permalink }}">{{ .Title }}</a> &rsaquo;</div>
{{ end }}
{{ with $next }}
<p class="mb-0" id="paige-prev">
&lsaquo; <a class="link-secondary" href="{{ .Permalink }}">{{ .Title }}</a>
</p>
<div class="paige-row-narrow text-center text-secondary" id="paige-prev">&lsaquo; <a class="link-secondary" href="{{ .Permalink }}">{{ .Title }}</a></div>
{{ end }}
</div>
{{ end }}

View File

@@ -1,101 +1,103 @@
{{ $page := . }}
{{ $alert := $page.Param "paige.alert" }}
{{ $authors := partial "paige/authors.html" $page }}
{{ $alert := $page.Param "paige.alert" | and ($page.Param "paige.page.hide_alert" | not) }}
{{ $authors := partial "paige/authors.html" $page | and ($page.Param "paige.page.hide_authors" | not) }}
{{ $categories := $page.GetTerms "categories" }}
{{ $date := and $page.IsPage $page.PublishDate }}
{{ $date := and $page.IsPage $page.PublishDate | and ($page.Param "paige.page.hide_date" | not) }}
{{ $dateformat := $page.Param "paige.date_format" | default ":date_long" }}
{{ $description := $page.Description | markdownify }}
{{ $description := $page.Description | markdownify | and ($page.Param "paige.page.hide_description" | not) }}
{{ $first := templates.Exists "partials/paige/page-header-first.html" }}
{{ $last := templates.Exists "partials/paige/page-header-last.html" }}
{{ $link := $page.Params.link }}
{{ $readingtime := $page.ReadingTime }}
{{ $series := $page.GetTerms "series" }}
{{ $table := and $page.Content (ne $page.TableOfContents `<nav id="TableOfContents"></nav>`) }}
{{ $readingtime := $page.ReadingTime | and ($page.Param "paige.page.hide_reading_time" | not) }}
{{ $series := $page.GetTerms "series" | and ($page.Param "paige.page.hide_series" | not) }}
{{ $tags := $page.GetTerms "tags" }}
{{ $textkeywords := eq ($page.Param "paige.keyword_style" | default "text") "text" }}
{{ $title := $page.Title | markdownify }}
{{ $title := $page.Title | markdownify | and ($page.Param "paige.page.hide_title" | not) }}
{{ $toc := and $page.Content (ne $page.TableOfContents `<nav id="TableOfContents"></nav>`) | and ($page.Param "paige.page.hide_toc" | not) }}
{{ $keywords := sort (append $categories $tags) "Title" }}
{{ $keywords := sort (append $categories $tags) "Title" | and ($page.Param "paige.page.hide_keywords" | not) }}
{{ if or $authors $date $description $first $keywords $last $readingtime $series $table $title }}
<header class="align-items-center d-flex flex-column mw-100" id="paige-page-header">
{{ if $first }}
{{ partial "paige/page-header-first.html" . }}
{{ end }}
{{ if or $authors $date $description $first $keywords $last $readingtime $series $title $toc }}
<header class="mw-100" id="paige-page-header">
<div class="align-items-center d-flex flex-column">
{{ if $first }}
{{ partial "paige/page-header-first.html" . }}
{{ end }}
{{ with $title }}
<h1 class="fw-bold text-center" id="paige-title">{{ if $link }}<a href="{{ $link }}">{{ . }}</a>{{ else }}{{ . }}{{ end }}</h1>
{{ end }}
{{ with $title }}
<h1 class="fw-bold" id="paige-page-title">{{ if $link }}<a href="{{ $link }}">{{ . }}</a>{{ else }}{{ . }}{{ end }}</h1>
{{ end }}
{{ with $description }}
<p class="lead text-center" id="paige-description">{{ . }}</p>
{{ end }}
{{ with $description }}
<p class="lead paige-row-wide" id="paige-page-description">{{ . }}</p>
{{ end }}
{{ if or $authors $date $keywords $readingtime $series }}
<div class="my-3">
{{ with $keywords }}
<p class="{{ if $textkeywords }} mb-0 {{ end }} text-center {{ if $textkeywords }} text-secondary {{ end }}" id="paige-keywords">
{{ range $i, $term := . -}}
{{- if $textkeywords -}}
{{ if or $authors $date $keywords $readingtime $series }}
<div id="paige-metadata">
{{ with $keywords }}
<p class="{{ if $textkeywords }} paige-row-narrow {{ end }} text-center {{ if $textkeywords }} text-secondary {{ end }}" id="paige-keywords">
{{ range $i, $term := . -}}
{{- if $textkeywords -}}
{{- if gt $i 0 }} · {{ end -}}
<a class="link-secondary" href="{{ .RelPermalink | safeURL }}">{{ .Title }}</a>
{{- else -}}
{{- if gt $i 0 }} {{ end -}}
<a class="badge text-bg-secondary text-decoration-none" href="{{ .RelPermalink | safeURL }}">{{ .Title }}</a>
{{- end -}}
{{- end }}
</p>
{{ end }}
{{ with $series }}
<p class="paige-row-narrow text-center text-secondary" id="paige-series">
{{ range $i, $series := . -}}
{{- if gt $i 0 }} · {{ end -}}
<a class="link-secondary" href="{{ .RelPermalink | safeURL }}">{{ .Title }}</a>
{{- else -}}
{{- if gt $i 0 }} {{ end -}}
<a class="link-secondary" href="{{ .RelPermalink }}">{{ .Title }}</a>
{{- end }}
</p>
{{ end }}
<a class="badge paige-keyword text-bg-secondary text-decoration-none" href="{{ .RelPermalink | safeURL }}">{{ .Title }}</a>
{{- end -}}
{{- end }}
</p>
{{ end }}
{{ with $authors }}
<p class="paige-row-narrow text-center text-secondary" id="paige-authors">
{{ range $i, $author := . -}}
{{- if gt $i 0 }} · {{ end -}}
{{ with $series }}
<p class="mb-0 text-center text-secondary" id="paige-series">
{{ range $i, $series := . -}}
{{- if gt $i 0 }} · {{ end -}}
<a class="link-secondary" href="{{ .RelPermalink }}">{{ .Title }}</a>
{{- end }}
</p>
{{ end }}
<a class="link-secondary" href="{{ .RelPermalink }}">{{ .Title }}</a>
{{- end }}
</p>
{{ end }}
{{ with $date }}
<p class="paige-row-narrow text-center text-secondary" id="paige-date">
<time datetime="{{ .Format `2006-01-02` }}">{{ time.Format $dateformat . }}</time>
</p>
{{ end }}
{{ with $authors }}
<p class="mb-0 text-center text-secondary" id="paige-authors">
{{ range $i, $author := . -}}
{{- if gt $i 0 }} · {{ end -}}
<a class="link-secondary" href="{{ .RelPermalink }}">{{ .Title }}</a>
{{- end }}
</p>
{{ end }}
{{ with $date }}
<p class="mb-0 text-center text-secondary" id="paige-date">
<time datetime="{{ .Format `2006-01-02` }}">{{ time.Format $dateformat . }}</time>
</p>
{{ end }}
{{ with $readingtime }}
<p class="mb-0 text-center text-secondary" id="paige-reading-time">{{ . }} {{ i18n "paige_minutes" . }}</p>
{{ end }}
</div>
{{ end }}
{{ with $alert }}
<div class="alert alert-{{ .type }} my-3" id="paige-alert" role="alert">{{ .message | markdownify }}</div>
{{ end }}
{{ if $table }}
<div class="my-3" id="paige-toc">
<div class="border mb-3 pe-3 ps-3 pt-3 rounded">
{{ $page.TableOfContents }}
{{ with $readingtime }}
<p class="paige-row-narrow text-center text-secondary" id="paige-reading-time">{{ . }} {{ i18n "paige_minutes" . }}</p>
{{ end }}
</div>
</div>
{{ end }}
{{ end }}
{{ if $last }}
{{ partial "paige/page-header-last.html" . }}
{{ end }}
{{ with $alert }}
<div class="alert alert-{{ .type }} paige-row-wide" id="paige-alert" role="alert">{{ .message | markdownify }}</div>
{{ end }}
{{ if $toc }}
<div class="paige-row-wide" id="paige-toc">
<div class="border pe-3 ps-3 pt-3 rounded">
{{ $page.TableOfContents }}
</div>
</div>
{{ end }}
{{ if $last }}
{{ partial "paige/page-header-last.html" . }}
{{ end }}
</div>
</header>
{{ end }}

View File

@@ -1,6 +1,6 @@
{{ $page := . }}
{{ $class := slice "align-items-center" "d-flex" "flex-column" "my-3" }}
{{ $class := slice }}
{{ $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 }}
{{ $expired := and $page.ExpiryDate (lt $page.ExpiryDate now) }}
@@ -43,12 +43,14 @@
{{ $class = delimit ($class | uniq | sort) " " }}
<article class="{{ $class }}" id="paige-article">
{{ partial "paige/page-header.html" $page }}
<article class="{{ $class }}" id="paige-page">
<div class="align-items-center d-flex flex-column">
{{ partial "paige/page-header.html" $page }}
{{ with $content }}
<div class="mw-100" id="paige-content">{{ . | safeHTML }}</div>
{{ end }}
{{ with $content }}
<main class="mw-100" id="paige-content">{{ . | safeHTML }}</main>
{{ end }}
{{ partial "paige/page-footer.html" $page }}
{{ partial "paige/page-footer.html" $page }}
</div>
</article>

View File

@@ -1,36 +1,38 @@
{{ $page := . }}
{{ $copyright := site.Copyright | markdownify }}
{{ $copyright := $page.Param "paige.copyright" | default site.Copyright | markdownify | and ($page.Param "paige.site.hide_copyright" | not) }}
{{ $credit := $page.Param "paige.credit" }}
{{ $first := templates.Exists "partials/paige/footer-first.html" }}
{{ $last := templates.Exists "partials/paige/footer-last.html" }}
{{ $license := $page.Param "paige.license" | markdownify | and ($page.Param "paige.site.hide_license" | not) }}
{{ $theme := "https://github.com/willfaught/paige" }}
{{ $license := $page.Param "paige.license" | markdownify }}
{{ $target := partial "paige/target.html" (dict "page" $page "url" $theme) }}
{{ if eq $credit nil }}
{{ $credit = `<a class="link-secondary text-decoration-none" href="https://github.com/willfaught/paige">Paige Theme</a>` | markdownify }}
{{ $credit = `<a class="link-secondary text-decoration-none" href="{{ $theme }}" {{ with $target }} target="{{ . }}" {{ end }}>Paige Theme</a>` | markdownify }}
{{ else }}
{{ $credit = markdownify $credit }}
{{ end }}
{{ $credit = $credit | and ($page.Param "paige.site.hide_credit" | not) }}
{{ if or $copyright $credit $first $last $license }}
<footer class="my-3" id="paige-site-footer">
<footer id="paige-site-footer">
{{ if $first }}
{{ partial "paige/footer-first.html" . }}
{{ end }}
{{ with $copyright }}
<p class="mb-0 text-center text-secondary" id="paige-copyright">{{ . }}</p>
<p class="paige-row-narrow text-center text-secondary" id="paige-copyright">{{ . }}</p>
{{ end }}
{{ with $license }}
<p class="mb-0 text-center text-secondary" id="paige-license">{{ . }}</p>
<p class="paige-row-narrow text-center text-secondary" id="paige-license">{{ . }}</p>
{{ end }}
{{ with $credit }}
<p class="mb-0 text-center text-secondary" id="paige-credit">{{ . }}</p>
<p class="paige-row-narrow text-center text-secondary" id="paige-credit">{{ . }}</p>
{{ end }}
{{ if $last }}

View File

@@ -1,15 +1,15 @@
{{ $page := . }}
{{ $ancestors := $page.Ancestors }}
{{ $basepath := path.Clean (urls.Parse (relLangURL "")).Path }}
{{ $description := $page.Param "paige.site_description" | markdownify }}
{{ $breadcrumbs := $page.Ancestors | and ($page.Param "paige.site.hide_breadcrumbs" | not) }}
{{ $description := $page.Param "paige.description" | markdownify | and ($page.Param "paige.site.hide_description" | not) }}
{{ $first := templates.Exists "partials/paige/site-header-first.html" }}
{{ $last := templates.Exists "partials/paige/site-header-last.html" }}
{{ $links := false }}
{{ $menu := site.Menus.main }}
{{ $menu := site.Menus.main | and ($page.Param "paige.site.hide_menu" | not) }}
{{ $pills := false }}
{{ $tabs := false }}
{{ $title := $page.Param "paige.site_title" | markdownify }}
{{ $title := $page.Param "paige.title" | default site.Title | markdownify | and ($page.Param "paige.site.hide_title" | not) }}
{{ $underline := false }}
{{ if eq $basepath "/" }}
@@ -32,22 +32,22 @@
{{ $links = true }}
{{ end }}
{{ if or $ancestors $description $first $last $menu $title }}
<header class="my-3" id="paige-site-header">
{{ if or $breadcrumbs $description $first $last $menu $title }}
<header id="paige-site-header">
{{ if $first }}
{{ partial "paige/site-header-first.html" $page }}
{{ end }}
{{ with $title }}
<p class="display-1 fw-bold mb-2 mt-3 text-center" id="paige-site-title">{{ . }}</p>
<div class="display-1 fw-bold {{ if $description }} mb-2 {{ end }} paige-row-wide text-center" id="paige-site-title">{{ . }}</div>
{{ end }}
{{ with $description }}
<p class="lead mb-3 mt-2 text-center" id="paige-site-description">{{ . }}</p>
<div class="lead paige-row-wide text-center" id="paige-site-description">{{ . }}</div>
{{ end }}
{{ with $menu }}
<nav aria-label="{{ i18n `paige_menu` }}" class="my-3" id="paige-menu">
<nav aria-label="{{ i18n `paige_menu` }}" class="paige-row-wide" id="paige-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 }}">
{{ range . }}
{{ $menupath := strings.TrimPrefix $basepath .URL }}
@@ -86,8 +86,8 @@
</nav>
{{ end }}
{{ with $ancestors }}
<nav aria-label="{{ i18n `paige_breadcrumbs` }}" class="my-3" id="paige-breadcrumbs">
{{ with $breadcrumbs }}
<nav aria-label="{{ i18n `paige_breadcrumbs` }}" class="paige-row-wide" id="paige-breadcrumbs">
<div class="d-flex justify-content-center">
<ol class="breadcrumb mb-0">
{{ $reverse := .Reverse }}
@@ -98,7 +98,7 @@
{{ $title := $ancestor.Title }}
{{ if and (eq $i $last) (not $title) }}
{{ $title = $page.Param "paige.site_title" | default (site.Title) }}
{{ $title = $page.Param "paige.title" | default (site.Title) }}
{{ end }}
<li class="breadcrumb-item"><a href="{{ .RelPermalink }}">{{ $title | markdownify | plainify | htmlUnescape }}</a></li>

View File

@@ -39,14 +39,6 @@
padding: 0;
}
#paige-content > * {
margin-bottom: 1rem;
}
#paige-content > :last-child {
margin-bottom: 0;
}
blockquote {
padding: 0.5rem 1rem;
border-left: 0.25rem solid var(--bs-border-color);
@@ -63,6 +55,7 @@ th {
display: flex;
}
.paige-row-narrow:not(:last-child),
.paige-figure .paige-quote,
.paige-figure .paige-video,
.paige-figure .highlight pre.chroma,
@@ -79,7 +72,10 @@ blockquote > p:last-of-type {
.paige-gallery,
.paige-image,
.paige-quote,
.paige-row-narrow:last-child,
.paige-row-wide,
.paige-video,
#paige-content > *,
table {
margin-bottom: 1rem;
}

View File

@@ -1 +1 @@
<body class="d-flex flex-column">
<body>

View File

@@ -3,7 +3,7 @@
{{ $title := $page.Title }}
{{ if and $page.IsHome (not $title) }}
{{ $title = $page.Param "paige.site_title" | default (site.Title) }}
{{ $title = $page.Param "paige.title" | default (site.Title) }}
{{ end }}
{{ $title = $title | markdownify | plainify | htmlUnescape }}
@@ -14,7 +14,7 @@
{{ $title := .Title }}
{{ if and .IsHome (not $title) }}
{{ $title = $page.Param "paige.site_title" | default (site.Title) }}
{{ $title = $page.Param "paige.title" | default (site.Title) }}
{{ end }}
{{ $titles = $titles | append ($title | markdownify | plainify | htmlUnescape) }}