slimmer code improves readability
authordanix <danix@danix.xyz>
Mon, 23 Jan 2023 19:03:09 +0000 (20:03 +0100)
committerdanix <danix@danix.xyz>
Mon, 23 Jan 2023 19:03:09 +0000 (20:03 +0100)
layouts/partials/head.html

index 31eb080..7b072e8 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 }}">