1
0
forked from BgLUG/bglug.it
bglug.it/layouts/partials/sidebar/en_linuxday-featured.html
omartek e5ac144ae1 Tag linuxday-featured: comando per calcolare permalink (#175)
Utile a breve. Se avevi in mente altro, non farci caso e archiviamo la PR.

Reviewed-on: BgLUG/bglug.it#175
Co-authored-by: omartek <olazzari@gmail.com>
Co-committed-by: omartek <olazzari@gmail.com>
2024-08-01 20:51:30 +00:00

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