Add #paige-site-header
This commit is contained in:
@@ -1061,6 +1061,8 @@ Page identifiers:
|
|||||||
<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 container of the site copyright, license, and credit content.</dd>
|
<dd>The container of the site copyright, license, and credit content.</dd>
|
||||||
|
<dt><code>#paige-site-header</code></dt>
|
||||||
|
<dd>The container of the site title and description content.</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-title</code></dt>
|
<dt><code>#paige-title</code></dt>
|
||||||
|
@@ -1,8 +1,16 @@
|
|||||||
{{ $page := . }}
|
{{ $page := . }}
|
||||||
|
|
||||||
{{ with $page.Param "paige.site_title" }}
|
{{ $description := $page.Param "paige.site_description" }}
|
||||||
|
{{ $title := $page.Param "paige.site_title" }}
|
||||||
|
|
||||||
|
{{ if or $description $title }}
|
||||||
|
<div class="mb-3" id="paige-site-header">
|
||||||
|
{{ with $title }}
|
||||||
<p class="display-1 fw-bold mb-2 text-center" id="paige-site-title">{{ . | markdownify }}</p>
|
<p class="display-1 fw-bold mb-2 text-center" id="paige-site-title">{{ . | markdownify }}</p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with $page.Param "paige.site_description" }}
|
|
||||||
|
{{ with $description }}
|
||||||
<p class="lead text-center" id="paige-site-description">{{ . | markdownify }}</p>
|
<p class="lead text-center" id="paige-site-description">{{ . | markdownify }}</p>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Reference in New Issue
Block a user