forked from Bunteshaus/bunteshaus.de
30 lines
1.1 KiB
HTML
30 lines
1.1 KiB
HTML
{{ if and .amount (or .paginator .pages) }}
|
|
{{ $amount := .amount }}
|
|
{{ $pages := "" }}
|
|
{{ if .pages }}
|
|
{{ $pages = .pages.ByLastmod.Reverse }}
|
|
{{ else if .paginator }}
|
|
{{ $pages = .paginator.Pages.ByLastmod.Reverse }}
|
|
{{ end }}
|
|
{{ if .content }}
|
|
{{ partial "snippets/content" (dict "content" .content) }}
|
|
{{ end }}
|
|
{{- if gt (len $pages) 0 -}}
|
|
{{ if .title }}<h2 style="margin-left: .6rem;">{{ .title }}</h2>{{ end }}
|
|
{{- range first $amount $pages -}}
|
|
<article class="articlebgcol1 borderrad25">
|
|
<a href="{{- .Permalink -}}">
|
|
<div id="articletitle">
|
|
<h2>{{- .Title -}}</h2>
|
|
</div>
|
|
</a>
|
|
<a href="{{- .Permalink -}}">
|
|
<div id="articlecontent">
|
|
{{ partial "layout/single/article" (dict "context" . "type" "list" "pic" "true") }}
|
|
</div>
|
|
</a>
|
|
</article>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|