mirror of
https://github.com/panr/hugo-theme-terminal.git
synced 2024-11-22 09:35:30 +03:00
#389 Added additional check if color param is empty string
This commit is contained in:
parent
0b5cc9b75f
commit
c1952eb7d5
1 changed files with 1 additions and 1 deletions
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue