Clean up content_header

This commit is contained in:
Eryn Wells 2023-08-20 12:15:37 -07:00
parent 4576de0c8d
commit f4ed16c706

View file

@ -1,11 +1,9 @@
<header>
{{ partial "development/draft_tag.html" . }}
<div class="post-title">
<h1>{{ .Title }}</h1>
{{ if and (not (eq .Section "about")) .Date }}
<div class="post-date"><time>{{ .Date | time.Format "January 2, 2006" }}</time></div>
{{ end }}
</div>
<h1>{{ .Title }}</h1>
{{ if and (not (eq .Section "about")) .Date }}
<time>{{ .Date | time.Format "January 2, 2006" }}</time>
{{ end }}
{{- if .Params.series -}}
{{- $series := .GetTerms "series" -}}
{{- if gt (len $series) 1 -}}