topnow: fix empty search (#8701)

This commit is contained in:
ilike2burnthing 2020-05-18 21:56:45 +01:00 committed by GitHub
parent f7d028cada
commit 98a5ef3124
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -24,9 +24,7 @@ settings: []
search:
paths:
# https://topnow.se/index.php?search=
- path: index.php
inputs:
search: "{{ .Keywords }}"
- path: "index.php{{if .Keywords}}?search={{ .Keywords }}{{else}}{{end}}"
keywordsfilters:
# the site uses % for wildcard
- name: re_replace