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,20 +12,20 @@
|
||||||
{{- $hasContent := false -}}
|
{{- $hasContent := false -}}
|
||||||
{{ with .Content }}
|
{{ with .Content }}
|
||||||
{{- $hasContent = true -}}
|
{{- $hasContent = true -}}
|
||||||
<section>
|
|
||||||
{{ . }}
|
{{ . }}
|
||||||
</section>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if $hasContent }}
|
{{ if .Params.posts | default true }}
|
||||||
<h2>Posts</h2>
|
{{ if and $hasContent }}
|
||||||
{{ end }}
|
<h2>Posts</h2>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
{{- range .Pages -}}
|
{{- range .Pages -}}
|
||||||
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</ul>
|
</ul>
|
||||||
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ define "footer" }}
|
{{ define "footer" }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue