Redid header style, wrapped content in main tag

This commit is contained in:
Brandon Rozek 2022-05-08 16:11:05 -04:00
parent ddaa281397
commit 0824107def
10 changed files with 147 additions and 48 deletions

View file

@ -1,9 +1,10 @@
{{ define "main"}}
<h1 class='title'>{{ .Title }}</h1>
{{ partial "header.html" . }}
<!-- content -->
<main>
<div id="contentBody">
{{ .Content }}
</div>
</main>
{{ partial "footer.html" . }}
{{ end }}

View file

@ -1,6 +1,6 @@
{{ define "main"}}
<h1 class='title'>{{ .Title }}</h1>
{{ partial "header.html" . }}
<main>
{{ if not .Date.IsZero }}
<!-- date -->
{{ $singlePageDateFormat := .Site.Params.singlePageDateFormat | default "January 2, 2006"}}
@ -21,5 +21,6 @@
<div id="contentBody">
{{ .Content }}
</div>
</main>
{{ partial "footer.html" . }}
{{ end }}