File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
layouts/partials/hb/assets Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ js_bundle_name = "hb"
3636logo = " /images/logo.png"
3737color = " light" # default color mode, light or dark.
3838sass_transpiler = " dartsass" # dartsass or libsass (deprecated).
39- sass_silence_deprecations = [" import" , " global-builtin" , " color-functions" ]
4039
4140[params .hb .styles ]
4241prefix = " hb-" # CSS variables prefix.
Original file line number Diff line number Diff line change 1515 {{- $rtl := eq $dir "rtl" }}
1616 {{- $suffix := cond $rtl ".rtl" "" }}
1717 {{/* SCSS options. */}}
18+ {{- $sassSilenceDeprecations := slice "import" "color-functions" "global-builtin" }}
1819 {{- $options := dict
1920 "transpiler" (default "dartsass" $params.hb.sass_transpiler)
2021 "silenceDeprecations" (
2122 cond
2223 $debug
2324 slice
24- (default slice $params.hb.sass_silence_deprecations)
25+ $sassSilenceDeprecations
2526 )
2627 "targetPath" (printf "css/%s%s.css" $bundle $suffix)
2728 "enableSourceMap" hugo.IsProduction
2829 "vars" site.Params.hb.styles
2930 }}
31+ {{ warnf "sass opts: %#v" $options }}
3032 {{- if hugo.IsProduction }}
3133 {{- $options = merge $options (dict
3234 "outputStyle" "compressed")
You can’t perform that action at this time.
0 commit comments