Add CSS IDs for site description, title

master
Will Faught 1 year ago
parent aaffec930c
commit 9dcba24a26

@ -970,6 +970,10 @@ Page identifiers:
<dd>The sections header.</dd> <dd>The sections header.</dd>
<dt><code>#paige-series</code></dt> <dt><code>#paige-series</code></dt>
<dd>The series.</dd> <dd>The series.</dd>
<dt><code>#paige-site-description</code></dt>
<dd>The site description.</dd>
<dt><code>#paige-site-title</code></dt>
<dd>The site title.</dd>
<dt><code>#paige-title</code></dt> <dt><code>#paige-title</code></dt>
<dd>The title.</dd> <dd>The title.</dd>
<dt><code>#paige-toc</code></dt> <dt><code>#paige-toc</code></dt>

@ -1,8 +1,8 @@
{{ $page := . }} {{ $page := . }}
{{ with $page.Param "paige.site_title" }} {{ with $page.Param "paige.site_title" }}
<p class="display-1 fw-bold mb-2 text-center">{{ . | 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 $page.Param "paige.site_description" }}
<p class="lead text-center">{{ . | markdownify }}</p> <p class="lead text-center" id="paige-site-description">{{ . | markdownify }}</p>
{{ end }} {{ end }}

Loading…
Cancel
Save