diff --git a/layouts/section/publication.html b/layouts/section/publication.html index c9e5109d..21a17be3 100644 --- a/layouts/section/publication.html +++ b/layouts/section/publication.html @@ -33,11 +33,13 @@ {{ i18n "filter_all" }} {{ $years_sorted := $.Scratch.GetSortedMapValues "years" }} + {{ if $years_sorted }} {{ range $year := sort $years_sorted "" "desc" }} {{ $year }} {{ end }} + {{ end }}