Make list content block optional

* Only generate a content block if there is content to show
* Change to use a <div> instead of <header> for the list conent
master
Kevin C. Coram 2019-12-07 14:06:08 -05:00
parent dccbceb218
commit 1a2aa49bbf
Signed by: kevin
GPG Key ID: 0342351B3D61AD35
1 changed files with 4 additions and 2 deletions

View File

@ -6,9 +6,11 @@
<h1 class="p-name">{{ .Title }}</h1>
{{ end }}
{{ define "content" }}
<header class="list-content e-content">
{{ if .Content }}
<div class="list-content e-content">
{{ .Content }}
</header>
</div>
{{ end }}
{{ range $index, $page := (.Paginate (where .Pages ".Params.hidden" "!=" "true")).Pages }}
{{ if ne $index 0 }}
{{ end }}