Add a page header to the list, single, and taxonomy templates

This commit is contained in:
Eryn Wells 2024-07-23 08:51:03 -07:00
parent 2878dd8d60
commit 54c371d7e6
5 changed files with 62 additions and 0 deletions

View file

@ -0,0 +1,13 @@
<h1 class="page-header__title">{{ .title | default .page.Title | markdownify }}</h1>
{{- with .page.Params.subtitle -}}
<p class="page-header__subtitle">{{ . | markdownify }}</p>
{{- end }}
{{ if not .page.IsSection }}
{{- with .page.Date -}}
<time class="page-date" datetime="{{ . | time.Format "2006-01-02" }}">
{{- . | time.Format "January 02, 2006" -}}
</time>
{{- end }}
{{ end }}