bglug.it/layouts/partials/sidebar/linuxday-featured.html
paspo 39b8a66370 internazionalizzazione sidebar (#245)
Reviewed-on: #245
Co-authored-by: paspo <paolo@asperti.com>
Co-committed-by: paspo <paolo@asperti.com>
2024-09-20 19:50:16 +00: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 }}