Do not show dates on pages where .IsNode is true, rather than using .IsSection. Apparently taxonomy pages are nodes, but are not sections.
13 lines
405 B
HTML
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 }}
|