Change empty lists to show page title
This commit is contained in:
@@ -57,8 +57,7 @@ Single pages use the `link` front matter parameter, if any, as the
|
||||
reference for an anchor around the page title, if any.
|
||||
|
||||
List and term pages show page titles and descriptions per month and year
|
||||
in descending order. An empty list has a "Nothing Here" header, and no
|
||||
body.
|
||||
in descending order. An empty list has a "Nothing here" body.
|
||||
|
||||
Taxonomy pages list term links in an inline, unordered, sorted list.
|
||||
|
||||
|
@@ -0,0 +1,3 @@
|
||||
---
|
||||
title: Projects
|
||||
---
|
||||
|
@@ -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 }}
|
||||
|
Reference in New Issue
Block a user