Some layout tweaks for the term template
Allow removing the pages list if the "pages" page variable is set false.
This commit is contained in:
parent
f21ac49b08
commit
66d50f773b
1 changed files with 10 additions and 10 deletions
|
@ -12,12 +12,11 @@
|
|||
{{- $hasContent := false -}}
|
||||
{{ with .Content }}
|
||||
{{- $hasContent = true -}}
|
||||
<section>
|
||||
{{ . }}
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
{{ if $hasContent }}
|
||||
{{ if .Params.posts | default true }}
|
||||
{{ if and $hasContent }}
|
||||
<h2>Posts</h2>
|
||||
{{ end }}
|
||||
|
||||
|
@ -27,6 +26,7 @@
|
|||
{{- end -}}
|
||||
</ul>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "footer" }}
|
||||
{{ partial "footer.html" . }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue