forked from Bunteshaus/bunteshaus.de
24 lines
787 B
HTML
24 lines
787 B
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 }}
|
|
{{- 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 "contentlayouts/article.html" (dict "context" . "type" "list") }}
|
|
</div>
|
|
</a>
|
|
</article>
|
|
{{ end }}
|
|
{{ end }}
|