Skip to content

Commit

Permalink
feat: add the encrypt.sass_transpiler parameter, default to dartsass
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Aug 22, 2024
1 parent 9b39301 commit 5f52ce6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
1 change: 1 addition & 0 deletions layouts/partials/encrypt/assets/css-resource.html
Original file line number Diff line number Diff line change
@@ -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") }}
Expand Down

0 comments on commit 5f52ce6

Please sign in to comment.