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