2022-06-22 18:15:37 +02:00
|
|
|
{{ 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 }}
|
|
|
|
|
2022-06-17 17:45:53 +02:00
|
|
|
{{ 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 }}
|
2022-06-24 20:39:21 +02:00
|
|
|
<div class="links">
|
2022-06-17 17:45:53 +02:00
|
|
|
<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 }}
|