bunteshaus.de/themes/buha/layouts/links/list.html
2022-06-24 20:39:21 +02:00

40 lines
868 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" }}
{{ $title := .Title }}
{{ $p := .Pages }}
{{ $paginator := $p }}
{{ if $p }}
<div class="links_wrapper">
{{ range $p }}
<div class="links">
<a href="{{ .Params.Link }}" class="t">
{{ .Title }}
</a>
<a href="{{ .Params.Link }}" class="p">
{{ .Params.Link }}
</a>
<a href="{{ .Params.Link }}" class="s">
{{ .Content }}
</a>
</div>
{{ end }}
</div>
{{ end }}
{{ end }}