#389 Added additional check if color param is empty string

This commit is contained in:
Aliaksei Yazhou 2022-11-17 00:55:10 +02:00
parent 0b5cc9b75f
commit c1952eb7d5

View file

@ -9,7 +9,7 @@
{{ $defaultStyles := resources.Get "css/style.scss" }}
<!-- 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) }}
{{ $localCss := slice $localColorCss $defaultStyles | resources.Concat (printf "css/%s-local.scss" .Params.color) }}
{{ $localColorStyles := $localCss | resources.ToCSS }}