1
0
Fork 0
This commit is contained in:
Kekskurse 2021-03-15 18:48:51 +01:00
parent 5a15e7f78b
commit cfc1aa933e
Signed by: kekskurse
GPG key ID: 728ACCB59341E7E4

View file

@ -24,8 +24,7 @@
<h1>Blog</h1>
<ul class="posts">
{{ $pages := where (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) ".Params.startpage" "==" true }}
{{ $paginator := .Paginate (where $pages "Params.hidden" "ne" true) }}
{{ range $paginator.Pages }}
{{ range first 5 $pages }}
{{- if (not (in (.Site.Params.excludedTypes | default (slice "page")) .Type)) -}}
<li class="post">
<a href="{{ .RelPermalink }}">{{.Title}}</a>
@ -40,7 +39,7 @@
<h1>Bilder</h1>
<ul class="posts">
{{ $pages2 := where (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) ".Params.gallery" "!=" nil }}
{{ range first 3 $pages2 }}
{{ range first 5 $pages2 }}
<li class="post">
<a href="{{ .RelPermalink }}">{{.Title}}</a>
@ -52,6 +51,10 @@
{{- end -}}
</ul>
<h1>Software</h1>
<ul class="posts">
<li class="post"><a href="https://github.com/kekskurse/go-mail-admin">go-mail-admin</a></li>
</ul>
<!--<h1>Blog</h1>
{{ $pages := where (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) ".Params.startpage" "==" true }}
{{ $paginator := .Paginate (where $pages "Params.hidden" "ne" true) }}