parabellumhd: fix year input

This commit is contained in:
Garfield69
2025-05-12 07:17:03 +12:00
parent 3d919aa88b
commit 75222975af

View File

@ -60,8 +60,7 @@ search:
view: list
order: "{{ .Config.sort }}"
search: "{{ .Keywords }}"
# if the year is not available in .Query.Year then extract it from .Query.Keywords if found
year: "{{ if .Query.Year }}{{ .Query.Year }}{{ else }}{{ re_replace .Query.Keywords \"(.*\\b((19|20)\\d{2})\\b.*)\" \"$2\" }}{{ end }}"
year: "{{ .Query.Year }}"
keywordsfilters:
- name: re_replace # remove year
args: ["\\b((19|20)\\d{2})\\b", ""]