Fix headings on some pages, remove useless <p>

This commit is contained in:
Joshua Goins 2023-08-10 10:46:46 -04:00
parent 5525c8cd4e
commit 6243410178
2 changed files with 8 additions and 3 deletions

View file

@ -1,5 +1,6 @@
{{ define "main" }} {{ define "main" }}
<p >Page not found!</p> <h2>Page not found!</h2>
<hr>
{{ with resources.Get "404.webp" }} {{ with resources.Get "404.webp" }}
{{ $alt_text := "Sakura is confused about where the page went, or maybe where you shouldn't go." }} {{ $alt_text := "Sakura is confused about where the page went, or maybe where you shouldn't go." }}

View file

@ -1,5 +1,9 @@
{{ define "main" }} {{ define "main" }}
<h2>{{ .Title }}</h2> {{ with .Title }}
<h2>{{ . }}</h2>
{{ else }}
<h2>Untitled Artwork</h2>
{{ end }}
<hr> <hr>
{{ with resources.Get .Params.filename }} {{ with resources.Get .Params.filename }}
@ -107,7 +111,7 @@
{{ with .Content }} {{ with .Content }}
<h3>Commentary</h3> <h3>Commentary</h3>
<p>{{ . }}</p> {{ . }}
{{ end }} {{ end }}
{{ if .Params.threed }} {{ if .Params.threed }}