Want to contribute? Fork me on Codeberg.org!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
832 B

3 years ago
{{ define "main" }}
{{ $pagination := .Paginate (where .Site.RegularPages "Params.hidden" "!=" true) }}
{{ partial "pagination.html" $pagination }}
{{ if eq $pagination.PageNumber 1 }}
{{ partial "content.html" .Content }}
3 years ago
{{ end }}
{{ $scratch := newScratch }}
{{ $scratch.Add "i" 0 }}
{{ range $pagination.Pages }}
{{ if or ($scratch.Get "i" | ne 0) (eq $pagination.PageNumber 1) }}
<br>
<hr>
<br>
{{ end }}
{{ $scratch.Set "i" ($scratch.Get "i" | add 1) }}
3 years ago
<article>
<header>
<h2><a href="{{ .RelPermalink }}">{{ partial "content.html" .Title }}</a></h2>
3 years ago
{{ partial "metadata.html" . }}
</header>
<br>
{{ partial "content.html" .Content | truncate 500 }} <a href="{{ .RelPermalink }}">Read more &raquo;</a>
3 years ago
</article>
{{ end }}
{{ partial "pagination.html" $pagination }}
3 years ago
{{ end }}