{{- if eq .Layout "home" -}}
<link rel="stylesheet" href="/assets/font/bootstrap-icons.css">
{{- end -}}

{{- $sassOptions := dict "targetPath" "assets/css/docs.css" "precision" 6 -}}
{{- $postcssOptions := dict "use" "autoprefixer" "noMap" true -}}

{{- if eq hugo.Environment "production" -}}
  {{- $sassOptions = merge $sassOptions (dict "outputStyle" "compressed") -}}
{{- end -}}

{{- $style := resources.Get "scss/docs.scss" | toCSS $sassOptions | postCSS $postcssOptions -}}

<link rel="stylesheet" href="{{ $style.Permalink | relURL }}">
