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 conentmaster
parent
dccbceb218
commit
1a2aa49bbf
|
@ -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 }}
|
||||
|
|
Loading…
Reference in New Issue