assorted: replace 2020 on TEST with .Today.Year

This commit is contained in:
Garfield69 2020-04-30 07:42:58 +12:00
parent e777397faa
commit 62753f4848
4 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,7 @@
search:
# https://www.bteye.org/q/2020
paths:
- path: "q/{{ if .Keywords }}{{ .Keywords }}{{else}}2020{{end}}"
- path: "q/{{ if .Keywords }}{{ .Keywords }}{{else}}{{ .Today.Year }}{{end}}"
rows:
selector: div.plist

View File

@ -181,7 +181,7 @@
- path: search.php
inputs:
tracker_search: torrent
keywords: "{{ if .Keywords }}{{ .Keywords }}{{else}}2020{{end}}"
keywords: "{{ if .Keywords }}{{ .Keywords }}{{else}}{{ .Today.Year }}{{end}}"
terms: all
fp: 1
author: ""

View File

@ -98,7 +98,7 @@
- path: search.php
inputs:
tracker_search: torrent
keywords: "{{ if .Keywords }}{{ .Keywords }}{{else}}2020{{end}}"
keywords: "{{ if .Keywords }}{{ .Keywords }}{{else}}{{ .Today.Year }}{{end}}"
terms: all
author: ""
sc: 1

View File

@ -92,7 +92,7 @@
showposts: 1
# 0 in article 1 in comments 2 in static pages 3 in article titles
titleonly: 3
story: "{{ if .Keywords }}{{ .Keywords }}{{ else }}2020{{ end }}"
story: "{{ if .Keywords }}{{ .Keywords }}{{ else }}{{ .Today.Year }}{{ end }}"
sortby: "{{ .Config.sort }}"
resorder: "{{ .Config.type }}"