bglug.it/layouts/partials/sidebar/linuxday-editions.html
paspo 0c15555dc1 fix edizioni linuxday (#323)
Reviewed-on: #323
Co-authored-by: paspo <paolo@asperti.com>
Co-committed-by: paspo <paolo@asperti.com>
2024-10-30 09:21:25 +00:00

25 lines
624 B
HTML

{{ $hiddenTags := slice "linuxday-featured" }}
{{ $years1 := where .Site.Taxonomies.grouping ".Page.Section" .Section }}
{{ $years1 := $years1.Alphabetical.Reverse }}
{{ $years := slice }}
{{ range $years1 }}
{{ if and (strings.HasPrefix .Name "linuxday-") (not (in $hiddenTags .Name)) }}
{{ $years = $years | append . }}
{{ end }}
{{ end }}
{{- if gt (len $years) 0 }}
<section>
<h3>{{ T "editions" }}</h3>
<ul class="links">
{{ range $years }}
<li>
<a href="/{{ .Page.Lang }}{{ .Page.Path }}">
{{ .Page.LinkTitle | safeHTML }}
</a>
</li>
{{ end }}
</ul>
</section>
{{ end }}