Stuff
This commit is contained in:
parent
5a15e7f78b
commit
cfc1aa933e
1 changed files with 6 additions and 3 deletions
|
@ -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) }}
|
||||
|
|
Reference in a new issue