From c4e7e119c5f98879dc28baba0f3101074414f347 Mon Sep 17 00:00:00 2001 From: danix Date: Mon, 23 Jan 2023 20:03:09 +0100 Subject: [PATCH] slimmer code improves readability --- layouts/partials/head.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 }} -- 2.20.1