hugo-theme-relearn/content/_relearn/searchpage/_content.gotmpl

18 lines
471 B
Go Template
Raw Normal View History

{{- if and (not .Site.Params.disableSearchIndex) (not .Site.Params.disableSearchPage) }}
{{- .EnableAllLanguages }}
{{- $url := trim (or .Site.Params.searchPageURL "search") "/" }}
{{- $content := dict
"mediaType" "text/markdown"
"value" ""
}}
{{- $page := dict
"content" $content
"kind" "page"
"outputs" (slice "html")
"path" "_relearn_searchpage"
"title" (T "Search")
"type" "_relearn_searchform"
"url" $url
}}
{{- .AddPage $page }}
{{- end }}