|
|
@ -1,5 +1,6 @@
|
|
|
|
{{ $page := . }}
|
|
|
|
{{ $page := . }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{ $alert := $page.Param "paige.alert" }}
|
|
|
|
{{ $authors := partial "paige/authors.html" $page }}
|
|
|
|
{{ $authors := partial "paige/authors.html" $page }}
|
|
|
|
{{ $categories := $page.GetTerms "categories" }}
|
|
|
|
{{ $categories := $page.GetTerms "categories" }}
|
|
|
|
{{ $date := and $page.IsPage $page.PublishDate }}
|
|
|
|
{{ $date := and $page.IsPage $page.PublishDate }}
|
|
|
@ -8,13 +9,15 @@
|
|
|
|
{{ $link := $page.Params.link }}
|
|
|
|
{{ $link := $page.Params.link }}
|
|
|
|
{{ $readingtime := $page.ReadingTime }}
|
|
|
|
{{ $readingtime := $page.ReadingTime }}
|
|
|
|
{{ $series := $page.GetTerms "series" }}
|
|
|
|
{{ $series := $page.GetTerms "series" }}
|
|
|
|
|
|
|
|
{{ $table := and $page.Content (ne $page.TableOfContents `<nav id="TableOfContents"></nav>`) }}
|
|
|
|
{{ $tags := $page.GetTerms "tags" }}
|
|
|
|
{{ $tags := $page.GetTerms "tags" }}
|
|
|
|
{{ $textkeywords := eq ($page.Param "paige.keyword_style" | default "text") "text" }}
|
|
|
|
{{ $textkeywords := eq ($page.Param "paige.keyword_style" | default "text") "text" }}
|
|
|
|
{{ $title := $page.Title | markdownify }}
|
|
|
|
{{ $title := $page.Title | markdownify }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ $keywords := sort (append $categories $tags) "Title" }}
|
|
|
|
{{ $keywords := sort (append $categories $tags) "Title" }}
|
|
|
|
|
|
|
|
|
|
|
|
<header class="mw-100 align-items-center d-flex flex-column" id="paige-page-header">
|
|
|
|
{{ if or $authors $date $description $keywords $readingtime $series $table $title }}
|
|
|
|
|
|
|
|
<header class="mw-100 align-items-center d-flex flex-column" id="paige-page-header">
|
|
|
|
{{ with $title }}
|
|
|
|
{{ with $title }}
|
|
|
|
<h1 class="fw-bold text-center" id="paige-title">{{ if $link }}<a href="{{ $link }}">{{ . }}</a>{{ else }}{{ . }}{{ end }}</h1>
|
|
|
|
<h1 class="fw-bold text-center" id="paige-title">{{ if $link }}<a href="{{ $link }}">{{ . }}</a>{{ else }}{{ . }}{{ end }}</h1>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
@ -73,15 +76,16 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ with $page.Param "paige.alert" }}
|
|
|
|
{{ with $alert }}
|
|
|
|
<div class="alert alert-{{ .type }} my-3" id="paige-alert" role="alert">{{ .message | markdownify }}</div>
|
|
|
|
<div class="alert alert-{{ .type }} my-3" id="paige-alert" role="alert">{{ .message | markdownify }}</div>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ if and $page.Content (ne $page.TableOfContents `<nav id="TableOfContents"></nav>`) }}
|
|
|
|
{{ if $table }}
|
|
|
|
<div class="my-3" id="paige-toc">
|
|
|
|
<div class="my-3" id="paige-toc">
|
|
|
|
<div class="border mb-3 pe-3 ps-3 pt-3 rounded">
|
|
|
|
<div class="border mb-3 pe-3 ps-3 pt-3 rounded">
|
|
|
|
{{ $page.TableOfContents }}
|
|
|
|
{{ $page.TableOfContents }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</header>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|