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