From 1d7e65f42e010c381d0e904e65babd558a78dd14 Mon Sep 17 00:00:00 2001 From: panr Date: Fri, 9 Dec 2022 15:54:14 +0100 Subject: [PATCH] fix external static style.css path (part 2) --- layouts/partials/head.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 07d4f77..bb214f3 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -13,14 +13,14 @@ {{ $localColorCss := resources.Get (printf "css/color/%s.scss" .Params.color) }} {{ $localCss := slice $localColorCss $defaultStyles | resources.Concat (printf "css/%s-local.scss" .Params.color) }} {{ $localColorStyles := $localCss | resources.ToCSS }} - + {{ else }} {{ $colorCss := resources.Get (printf "css/color/%s.scss" ($.Site.Params.ThemeColor | default "orange")) }} {{ $css := slice $colorCss $defaultStyles | resources.Concat "css/base.scss" }} - {{ $options := (dict "targetPath" "style.css" "outputStyle" "compressed" "enableSourceMap" true "precision" 6 "includePaths" (slice "node_modules")) }} + {{ $options := (dict "targetPath" "styles.css" "outputStyle" "compressed" "enableSourceMap" true "precision" 6 "includePaths" (slice "node_modules")) }} {{ $styles := $css | resources.ToCSS $options }} - + {{ end }}