hugo-theme-termlite/layouts/partials/page_header.html
Eryn Wells 000353f339 Layouts: Remove date from taxonomy templates
Do not show dates on pages where .IsNode is true, rather than using .IsSection.
Apparently taxonomy pages are nodes, but are not sections.
2024-07-25 13:24:33 -07:00

13 lines
405 B
HTML

<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.IsNode }}
{{- with .page.Date -}}
<time class="page-date" datetime="{{ . | time.Format "2006-01-02" }}">
{{- . | time.Format "January 02, 2006" -}}
</time>
{{- end }}
{{ end }}