Skip to content

Commit

Permalink
fix: ignore invalid years
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed May 13, 2023
1 parent 52584dc commit f87cb77
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions layouts/partials/search/assets/js-resource.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
{{- $pages = where $pages "Params.noindex" "ne" true }}
{{- with $pages.GroupByDate "2006" }}
{{- range . }}
{{- if eq .Key "0001" }}
{{- continue }}
{{- end }}
{{- $years = $years | append .Key }}
{{- end }}
{{- $years = sort $years }}
Expand Down

0 comments on commit f87cb77

Please sign in to comment.