2024-08-26 21:07:33 +00:00
|
|
|
{{- if and (not .Site.Params.disableSearchIndex) (not .Site.Params.disableSearchPage) }}
|
|
|
|
{{- .EnableAllLanguages }}
|
|
|
|
{{- $url := trim (or .Site.Params.searchPageURL "search") "/" }}
|
|
|
|
{{- $content := dict
|
|
|
|
"mediaType" "text/markdown"
|
2024-10-15 13:43:00 +00:00
|
|
|
"value" ""
|
2024-08-26 21:07:33 +00:00
|
|
|
}}
|
|
|
|
{{- $page := dict
|
|
|
|
"content" $content
|
|
|
|
"kind" "page"
|
2024-08-27 13:34:36 +00:00
|
|
|
"outputs" (slice "html")
|
2024-08-26 21:07:33 +00:00
|
|
|
"path" "_relearn_searchpage"
|
|
|
|
"title" (T "Search")
|
2024-10-15 13:43:00 +00:00
|
|
|
"type" "_relearn_searchform"
|
2024-08-26 21:07:33 +00:00
|
|
|
"url" $url
|
|
|
|
}}
|
|
|
|
{{- .AddPage $page }}
|
|
|
|
{{- end }}
|