Merge pull request #396 from hubba1987/389-fix

#389 Added additional check if color param is empty string
This commit is contained in:
Radek Kozieł 2022-11-17 10:41:52 +01:00 committed by GitHub
commit 5b9dff342a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@
{{ $defaultStyles := resources.Get "css/style.scss" }} {{ $defaultStyles := resources.Get "css/style.scss" }}
<!-- Local Theme Variables --> <!-- Local Theme Variables -->
{{ if (isset .Params "color") }} {{ if and (isset .Params "color") (not (eq .Params.color "")) }}
{{ $localColorCss := resources.Get (printf "css/color/%s.scss" .Params.color) }} {{ $localColorCss := resources.Get (printf "css/color/%s.scss" .Params.color) }}
{{ $localCss := slice $localColorCss $defaultStyles | resources.Concat (printf "css/%s-local.scss" .Params.color) }} {{ $localCss := slice $localColorCss $defaultStyles | resources.Concat (printf "css/%s-local.scss" .Params.color) }}
{{ $localColorStyles := $localCss | resources.ToCSS }} {{ $localColorStyles := $localCss | resources.ToCSS }}