forked from Bunteshaus/bunteshaus.de
28 lines
682 B
HTML
28 lines
682 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 "intro" }}
|
|
{{ if ne .Content "" }}
|
|
{{ partial "snippets/content" (dict "content" .Content) }}
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
{{ define "content" }}
|
|
<div>
|
|
{{ range .Pages }}
|
|
<div>🗀 <a href="{{ .Permalink }}" class="underline">{{ .Title }}</a></div>
|
|
{{ end }}
|
|
</div>
|
|
|
|
<div>
|
|
{{ range .Resources }}
|
|
<div>🗀 <a href="{{ .Permalink }}">{{ . }}</a></div>
|
|
{{ end }}
|
|
</div>
|
|
{{ end }}
|