Files
fte-Homepage/themes/tella/layouts/partials/recent.html
T
fte 60891c90b0
Website / Website veröffentlichen (push) Successful in 7s
added function "pinnable articles"
2026-11-19 19:36:28 +01:00

16 lines
614 B
HTML

{{ $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 }}
<div class="flex flex-wrap justify-center text-gray-300 my-5">
<a href="blog/"
class="duration-200 px-6 py-3 bg-darker-green-custom hover:opacity-80 hover:text-white relative block focus:outline-none text-md text-center text-white">
Alle Beiträge >
</a>
</div>