40 lines
915 B
HTML
40 lines
915 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" style="display: flex; flex-direction: column;">
|
|
<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 }}
|