bunteshaus.de/themes/buha/layouts/partials/layout/links.html
2022-06-15 21:48:37 +02:00

33 lines
632 B
HTML

{{ $title := .title }}
{{ $p := .pages }}
{{ if and (.limit) (not .paginate) }}
{{ $p = first .limit .pages }}
{{ end }}
{{ $paginator := .pages }}
{{ if .paginate }}
{{ $paginator = .context.Paginate $p }}
{{ $p = $paginator.Pages }}
{{ end }}
{{ 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 }}