{{- if .Site.Params.algolia }}
{{- $outputStyle := "expanded" }}
{{- if hugo.IsProduction }}{{ $outputStyle = "compressed" }}{{ end }}
{{- $options := dict
    "transpiler" (default "libsass" site.Params.sass_transpiler)
    "targetPath" "assets/algolia/bundle.min.css"
    "outputStyle" $outputStyle
    "includePaths" (slice "node_modules")
}}
{{- $style := resources.Get "algolia/scss/index.scss" | toCSS $options | fingerprint }}
<link data-precache rel="stylesheet" href="{{ $style.RelPermalink }}" integrit