compose-theme/layouts/partials/functions/getAlgoliaConfig.html

4 lines
216 B
HTML
Raw Permalink Normal View History

2024-07-26 17:08:59 +02:00
{{- $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)) }}