Add header tag to page header
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
{{ $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 }}
|
||||||
|
|
||||||
<div class="mw-100" id="paige-metadata">
|
<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 }}
|
||||||
@@ -70,16 +70,16 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
|
||||||
|
|
||||||
{{ with $page.Param "paige.alert" }}
|
{{ with $page.Param "paige.alert" }}
|
||||||
<div class="alert alert-{{ .type }}" role="alert">{{ .message | markdownify }}</div>
|
<div class="alert alert-{{ .type }}" role="alert">{{ .message | markdownify }}</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if and $page.Content (ne $page.TableOfContents `<nav id="TableOfContents"></nav>`) }}
|
{{ if and $page.Content (ne $page.TableOfContents `<nav id="TableOfContents"></nav>`) }}
|
||||||
<div class="mw-100" id="paige-toc">
|
<div class="mw-100" 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>
|
||||||
|
Reference in New Issue
Block a user