bunteshaus.de/themes/buha/layouts/partials/layout/links.html

27 lines
456 B
HTML
Raw Normal View History

2022-06-13 04:08:02 +02:00
{{ $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 style="display: flex; flex-direction: column;">
{{ range $p }}
<a href="{{ .Params.Link }}">
<p>{{ .Title }}<br>
{{ .Params.Link }}
</p>
</a>
{{ end }}
</div>
{{ end }}