{{/* Zoek alle scss-bestanden, combineer ze, zet om naar CSS, verkleinen en voorzien van fingerprint */}}
{{ $styles := resources.Match "scss/**.scss" | resources.Concat "combined.scss" | toCSS (dict "outputStyle" "compressed") | minify | fingerprint }}
<style>{{ $styles.Content | safeCSS }}</style>


{{/*
  Work in progress
  {{ if eq (getenv "HUGO_ENV") "development" }}
  {{ $cssOpts := (dict "enableSourceMap" true "includePaths" (slice "node_modules/bulma" "assets/scss")) }}
  {{ $styles := resources.Match "scss/**.scss" | resources.Concat "combined.scss" | toCSS $cssOpts | postCSS }}
  <link rel="stylesheet" href="{{ $styles.Permalink }}" media="screen">
  {{ else }}
  {{ $cssOpts := (dict "enableSourceMap" false "includePaths" (slice "node_modules/bulma" "assets/scss")) }}

  {{ with $combined_styles := resources.Match "scss/*.scss" | toCSS $cssOpts | postCSS | minify | fingerprint }}
  <style>{{ .Content | safeCSS }}</style>
  {{ end }}
  {{ end }}
*/}}