2023-05-21 00:42:05 +02:00
|
|
|
{{/* Zoek alle scss-bestanden, combineer ze, zet om naar CSS, verkleinen en voorzien van fingerprint */}}
|
2023-06-01 15:55:16 +02:00
|
|
|
{{ $styles := resources.Match "scss/**.scss" | resources.Concat "combined.scss" | toCSS (dict "outputStyle" "compressed") | minify | fingerprint }}
|
2023-06-19 23:19:06 +02:00
|
|
|
<style>{{ $styles.Content | safeCSS }}</style>
|
2023-05-21 00:42:05 +02:00
|
|
|
|
|
|
|
|
|
|
|
{{/*
|
|
|
|
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 }}
|
|
|
|
*/}}
|