forked from Bunteshaus/bunteshaus.de
21 lines
662 B
HTML
21 lines
662 B
HTML
|
{{ define "banner" }}
|
||
|
{{ $image := "" }}
|
||
|
{{ if .Resources.GetMatch "banner*" }}
|
||
|
{{ $image = .Resources.GetMatch "banner*" }}
|
||
|
{{ end }}
|
||
|
{{ partial "snippets/banner_new" (dict "context" . "image" $image "title" .Title "section" .Section) }}
|
||
|
{{ end }}
|
||
|
|
||
|
{{ define "content" }}
|
||
|
{{ if eq .Kind "taxonomy" }}
|
||
|
<div>
|
||
|
{{ range .Pages }}
|
||
|
<a href="{{ .Page.Permalink }}" class="underline" style="margin-right: 1rem;">{{ .Page.Title }}</a>
|
||
|
{{ end }}
|
||
|
</div>
|
||
|
{{ else }}
|
||
|
{{- $pages := .Data.Pages -}}
|
||
|
{{ partial "snippets/gen_list" (dict "context" . "pages" $pages "content" .Content "type" .Type "paginate" true) }}
|
||
|
{{ end }}
|
||
|
{{ end }}
|