Change empty lists to show page title

This commit is contained in:
Will Faught
2022-12-01 12:55:16 -08:00
parent 94427ba093
commit a37377f940
3 changed files with 7 additions and 8 deletions

View File

@@ -1,9 +1,4 @@
{{ define "main" }}
{{ if not (or .Title .Description .Content .Pages) }}
<section>
<h1 class="display-5 fw-bold text-center">Nothing Here</h1>
</section>
{{ else }}
<section>
{{ if or .Title .Description }}
<header>
@@ -68,6 +63,8 @@
</footer>
{{ end }}
{{ end }}
{{ if not (or .Content .Pages) }}
<p class="lead text-center">Nothing here</p>
{{ end }}
</section>
{{ end }}
{{ end }}