diff --git a/layouts/partials/sidebar/linuxday-editions.html b/layouts/partials/sidebar/linuxday-editions.html index daa9493..a65b199 100644 --- a/layouts/partials/sidebar/linuxday-editions.html +++ b/layouts/partials/sidebar/linuxday-editions.html @@ -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 }}

{{ T "editions" }}

{{ end }}