bglug.it/layouts/partials/sidebar/it_linuxday-featured.html
paspo bcf2f4256f sidebar su elenco eventi e linuxday (#103)
fixes #99
fixes #106

Reviewed-on: BgLUG/bglug.it#103
Co-authored-by: paspo <paolo@asperti.com>
Co-committed-by: paspo <paolo@asperti.com>
2024-07-14 22:19:25 +00:00

14 lines
424 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>In evidenza</h3>
<ul class="links">
{{ range $featured_pages }}
<li><a href="/{{ .Page.Lang }}{{ .Page.Path }}">{{ .Page.LinkTitle | safeHTML}}</a></li>
{{ end }}
</ul>
</section>
{{ end }}