compose-theme/layouts/partials/functions/getAlgoliaConfig.html
2024-07-26 17:08:59 +02:00

4 lines
No EOL
216 B
HTML

{{- $defaults := (dict "id" "#" "key" "#") }}
{{- $config := default $defaults site.Params.search.algolia }}
{{- return (jsonify (dict "on" $config.enable "id" $config.id "key" $config.key "index" $config.index)) }}