Skip to content

Commit

Permalink
feat: add the debugger.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 6d59189 commit f636720
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,3 +10,4 @@ weight = 1
[params.hugopress.modules.debugger.hooks.body-end]

[params.debugger]
sass_transpiler = "dartsass"
1 change: 1 addition & 0 deletions layouts/partials/debugger/assets/css.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{{- $opts := dict
"targetPath" "css/debugger.css"
"transpiler" (default "dartsass" site.Params.debugger.sass_transpiler)
}}
{{- $css := resources.Get "mods/debugger/scss/index.scss" | toCSS $opts }}
<link rel="stylesheet" href="{{ $css.RelPermalink }}">

0 comments on commit f636720

Please sign in to comment.