Fix the alignment of the post title <h1>

This commit is contained in:
Eryn Wells 2023-09-30 11:06:30 -07:00
parent fe176e4dfd
commit 090eef5bee
5 changed files with 37 additions and 32 deletions

View file

@ -1,16 +1,23 @@
<header>
{{ partial "development/draft_tag.html" . }}
<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 -}}
{{- errorf "More than one series for %s" .Permalink -}}
{{- end -}}
{{- with index $series 0 -}}
<span class="series"><a href="{{ .Permalink }}">{{ .Title }}</a></span>
<span class="series">
<a href="{{ .Permalink }}">{{ .Title }}</a>
</span>
{{- end -}}
{{- end -}}
{{ partial "development/draft_tag.html" . }}
</header>

View file

@ -1 +1 @@
{{ if .Draft }}<span class="draft">d</span>{{ end }}
{{ if .Draft }}<span class="draft">draft</span>{{ end }}