2022-01-06 22:52:22 +01:00
|
|
|
{{- $searchDataFile := printf "search/%s.data.json" .Language.Lang -}}
|
|
|
|
{{- $searchData := resources.Get "search/data.json" | resources.ExecuteAsTemplate $searchDataFile . | resources.Minify -}}
|
2022-01-06 13:58:10 +01:00
|
|
|
{
|
|
|
|
"dataFile": {{ $searchData.RelPermalink | jsonify }},
|
|
|
|
"indexConfig": {{ .Site.Params.GeekdocSearchConfig | jsonify }},
|
|
|
|
"showParent": {{ if .Site.Params.GeekdocSearchShowParent }}true{{ else }}false{{ end }}
|
|
|
|
}
|