diff --git a/hugo.toml b/hugo.toml index 80d3db1..bfcfb0a 100644 --- a/hugo.toml +++ b/hugo.toml @@ -10,6 +10,7 @@ path = "github.com/hugomods/icons/vendors/bootstrap" [params.encrypt] password = "" storage = "session" +sass_transpiler = "dartsass" [params.hugopress.modules.encrypt.hooks.head-end] diff --git a/layouts/partials/encrypt/assets/css-resource.html b/layouts/partials/encrypt/assets/css-resource.html index 27d6297..dc3ac7c 100644 --- a/layouts/partials/encrypt/assets/css-resource.html +++ b/layouts/partials/encrypt/assets/css-resource.html @@ -1,5 +1,6 @@ {{- $opts := dict "targetPath" "css/encrypt.css" + "transpiler" (default "dartsass" site.Params.encrypt.sass_transpiler) }} {{- if hugo.IsProduction }} {{- $opts = $opts | merge (dict "outputStyle " "compressed") }}