From: danix Date: Mon, 23 Jan 2023 19:03:09 +0000 (+0100) Subject: slimmer code improves readability X-Git-Url: https://git.danix.xyz/?p=theme-danix.xyz.git;a=commitdiff_plain;h=c4e7e119c5f98879dc28baba0f3101074414f347 slimmer code improves readability --- diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 31eb080..7b072e8 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -3,9 +3,8 @@ - {{ $sass_options := (dict "targetPath" "css/site.css" "outputStyle" "compressed" "transpiler" "dartsass") }} - {{ $sass_template := resources.Get "sass/main.scss" }} - {{ $main_style := $sass_template | resources.toCSS $sass_options }} + {{ $sass_options := (dict "targetPath" "css/style.css" "outputStyle" "compressed" "transpiler" "dartsass" "enableSourceMap" (not hugo.IsProduction)) }} + {{ $main_style := resources.Get "sass/main.scss" | resources.toCSS $sass_options }}