diff --git a/layouts/partials/style.html b/layouts/partials/style.html index 7012e30..51eec69 100644 --- a/layouts/partials/style.html +++ b/layouts/partials/style.html @@ -1,2 +1,8 @@ -{{ $style := resources.Get . | toCSS | minify | fingerprint }} +{{ $style := resources.Get . }} + +{{ if strings.HasSuffix . ".scss" }} + {{ $style = toCSS $style }} +{{ end }} + +{{ $style = minify $style | fingerprint}}