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.
This commit is contained in:
Eryn Wells 2024-07-25 13:24:33 -07:00
parent c1456a6ee2
commit 000353f339

View file

@ -4,7 +4,7 @@
<p class="page-header__subtitle">{{ . | markdownify }}</p>
{{- end }}
{{ if not .page.IsSection }}
{{ if not .page.IsNode }}
{{- with .page.Date -}}
<time class="page-date" datetime="{{ . | time.Format "2006-01-02" }}">
{{- . | time.Format "January 02, 2006" -}}