forked from TrueCloudLab/distribution
e2ae76f1f2
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
8 lines
512 B
JSON
8 lines
512 B
JSON
{{- $searchDataFile := printf "search/%s.data.json" .Language.Lang -}}
|
|
{{- $searchData := resources.Get "search/data.json" | resources.ExecuteAsTemplate $searchDataFile . | resources.Minify -}}
|
|
{
|
|
"dataFile": {{ $searchData.RelPermalink | jsonify }},
|
|
"indexConfig": {{ .Site.Params.geekdocSearchConfig | jsonify }},
|
|
"showParent": {{ if .Site.Params.geekdocSearchShowParent }}true{{ else }}false{{ end }},
|
|
"showDescription": {{ if .Site.Params.geekdocSearchshowDescription }}true{{ else }}false{{ end }}
|
|
}
|