mirror of
https://github.com/thegeeklab/hugo-geekdoc.git
synced 2024-07-07 09:30:56 +02:00
8 lines
416 B
JSON
8 lines
416 B
JSON
|
{{- $searchDataFile := printf "%s.searchdata.json" .Language.Lang -}}
|
||
|
{{- $searchData := resources.Get "search/searchdata.json" | resources.ExecuteAsTemplate $searchDataFile . | resources.Minify -}}
|
||
|
{
|
||
|
"dataFile": {{ $searchData.RelPermalink | jsonify }},
|
||
|
"indexConfig": {{ .Site.Params.GeekdocSearchConfig | jsonify }},
|
||
|
"showParent": {{ if .Site.Params.GeekdocSearchShowParent }}true{{ else }}false{{ end }}
|
||
|
}
|