mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-12 22:14:08 +00:00
publication archive: Fix error when no publications exist
This commit is contained in:
1 parent
71feb4ed7e
commit
9e14c8a74e
1 file changed
+2
@@ -33,11 +33,13 @@
|
||||
<select class="pub-filters" data-filter-group="year">
|
||||
<option value="*">{{ i18n "filter_all" }}</option>
|
||||
{{ $years_sorted := $.Scratch.GetSortedMapValues "years" }}
|
||||
{{ if $years_sorted }}
|
||||
{{ range $year := sort $years_sorted "" "desc" }}
|
||||
<option value=".year-{{ $year }}">
|
||||
{{ $year }}
|
||||
</option>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</select>
|
||||
</p>
|
||||
|
||||
|
||||
Reference in new issue
Block a user