added function "pinnable articles"
Website / Website veröffentlichen (push) Successful in 7s

This commit is contained in:
fte committed 2026-11-19 19:36:28 +01:00
1 parent 2a498515c7
commit 60891c90b0
4 files changed
+12 -4

No files matched your search

+6 -1
View File
@@ -1,4 +1,9 @@
{{ range first 5 (where site.RegularPages.ByDate.Reverse "Type" "in" site.Params.mainSections )}}
{{ $pinned := where site.RegularPages "Params.pinned" true }}
{{ range $pinned }}
<a href="{{ .Permalink }}">{{ partial "summary.html" . }}</a>
{{ end }}
{{ range first 4 (where site.RegularPages.ByDate.Reverse "Type" "in" site.Params.mainSections )}}
<a href="{{ .Permalink }}">{{ partial "summary.html" . }}</a>
{{ end }}