commit 1d7e65f42e010c381d0e904e65babd558a78dd14
parent 613325cba00a8fbb63612fd1eb4994094709be78
Author: panr <radoslaw.koziel@gmail.com>
Date:   Fri,  9 Dec 2022 15:54:14 +0100

fix external static style.css path (part 2)

Diffstat:
Mlayouts/partials/head.html | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 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 }} - <link rel="stylesheet" href="{{ $localColorStyles.RelPermalink }}"> + <link rel="stylesheet" href="{{ $localColorStyles.Permalink }}"> {{ else }} <!-- Theme Variables --> {{ $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 }} - <link rel="stylesheet" href="{{ $styles.RelPermalink }}"> + <link rel="stylesheet" href="{{ $styles.Permalink }}"> {{ end }} <!-- Custom CSS to override theme properties (/static/style.css) -->