From f4eaca45f84169deb289af566f6aa617421ff5dc Mon Sep 17 00:00:00 2001 From: Massimo Maggioni <94243057+MassimoMaggioni@users.noreply.github.com> Date: Mon, 20 Dec 2021 22:59:16 +0100 Subject: [PATCH] - revert to the default search page --- layouts/page/search.html | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/layouts/page/search.html b/layouts/page/search.html index a2e98c9..81b1d75 100644 --- a/layouts/page/search.html +++ b/layouts/page/search.html @@ -23,20 +23,8 @@ window.searchResultTitleTemplate = "{{ T `search.resultTitle` }}" -{{- $searchfunc := "" -}} {{- $opts := dict "minify" hugo.IsProduction "JSXFactory" "createElement" -}} -{{- if eq .Site.Params.widgets.search.mode "original" -}} - {{- $searchfunc = "ts/search.tsx" -}} -{{- else if eq .Site.Params.widgets.search.mode "nohighlight" -}} - {{- $searchfunc = "ts/search_nohl.tsx" -}} -{{- else if eq .Site.Params.widgets.search.mode "wholeword" -}} - {{- $searchfunc = "ts/search_ww.tsx" -}} -{{- else if eq .Site.Params.widgets.search.mode "highlight" -}} - {{- $searchfunc = "ts/search_hl.tsx" -}} -{{- else -}} - {{ warnf "Searching function not defined" }} -{{- end -}} -{{- $searchScript := resources.Get $searchfunc | js.Build $opts -}} +{{- $searchScript := resources.Get "ts/search.tsx" | js.Build $opts -}} {{ partialCached "footer/footer" . }}