bglug.it/layouts/partials/sidebar/linuxday-featured.html
paspo 57f4654a2b
Some checks failed
Linting markdown on PR / unicode-check (pull_request) Failing after 1m40s
linuxday per anno
2024-09-24 23:25:28 +02:00

12 lines
422 B
HTML

{{- $linuxday_pages := (where .Site.Pages "Section" .Section) }}
{{- $featured_pages := where $linuxday_pages ".Params.grouping" "intersect" (slice "linuxday-featured") }}
{{- if gt (len $featured_pages) 0 }}
<section>
<h3>{{ T "featured" }}</h3>
<ul class="links">
{{ range $featured_pages }}
<li><a href="{{ ref . .Page.Path }}">{{ .Page.LinkTitle | safeHTML}}</a></li>
{{ end }}
</ul>
</section>
{{ end }}