fix edizioni linuxday
All checks were successful
Linting markdown on PR / unicode-check (pull_request) Successful in 1m45s

This commit is contained in:
Paolo Asperti 2024-10-29 23:36:29 +01:00
parent 40d9b9fb49
commit c7c611ddb3
Signed by: paspo
GPG Key ID: 06D46905D19D5182

View File

@ -1,20 +1,24 @@
{{ $hiddenTags := slice "linuxday-featured" }}
{{ $years := where .Site.Taxonomies.grouping ".Page.Section" .Section }}
{{ $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.Alphabetical.Reverse }}
{{ if not (in $hiddenTags .Name ) }}
{{ range $years }}
<li>
<a href="/{{ .Page.Lang }}{{ .Page.Path }}">
{{ .Page.LinkTitle | safeHTML }}
</a>
</li>
{{ end }}
{{ end }}
</ul>
</section>
{{ end }}