forked from Bunteshaus/bunteshaus.de
27 lines
456 B
HTML
27 lines
456 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 style="display: flex; flex-direction: column;">
|
||
|
{{ range $p }}
|
||
|
<a href="{{ .Params.Link }}">
|
||
|
<p>{{ .Title }}<br>
|
||
|
{{ .Params.Link }}
|
||
|
</p>
|
||
|
</a>
|
||
|
{{ end }}
|
||
|
</div>
|
||
|
{{ end }}
|