bglug.it/layouts/partials/sidebar/linuxday-featured.html
paspo 28189fe269
All checks were successful
Linting markdown on PR / unicode-check (pull_request) Successful in 1m16s
internazionalizzazione sidebar
2024-09-20 20:45:15 +02:00

12 lines
418 B
HTML

{{- $linuxday_pages := (where .Site.Pages "Section" .Section) }}
{{- $featured_pages := where $linuxday_pages ".Params.tags" "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 }}