{{ with .Site.Params.algolia_docsearch }}
{{ end }}
{{/* copy-and-paste helper for codenew shortcode */}}
{{- if or (.HasShortcode "code_sample") (.HasShortcode "code") (.HasShortcode "codenew") -}}
{{- $toastrJs := resources.Get "js/toastr-2.1.4.min.js" | minify | fingerprint -}}
{{- if hugo.IsProduction -}}
{{- else -}}
{{- end -}}
{{- end -}}
{{/* JavaScript detector */}}
{{- if hugo.IsProduction -}}
{{- $jsDetect := resources.Get "js/detect-js.js" | minify | fingerprint -}}
{{- else -}}
{{- $jsDetect := resources.Get "js/detect-js.js" -}}
{{- end -}}