]> danix's work - theme-danix.xyz.git/commitdiff
slimmer code improves readability
authordanix <redacted>
Mon, 23 Jan 2023 19:03:09 +0000 (20:03 +0100)
committerdanix <redacted>
Mon, 23 Jan 2023 19:03:09 +0000 (20:03 +0100)
layouts/partials/head.html

index 31eb080fbf2ffd6a2bfed281b7eea043965f8f19..7b072e880b79eb787adde7d649440f389366f556 100644 (file)
@@ -3,9 +3,8 @@
     <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="profile" href="https://gmpg.org/xfn/11">
 
-       {{ $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 }}
 
        <link rel="stylesheet" href="{{ $main_style.RelPermalink }}">