revert 16566b8d4b
All checks were successful
/ site (push) Successful in 1s
All checks were successful
/ site (push) Successful in 1s
This commit is contained in:
parent
16566b8d4b
commit
e44b745434
1 changed files with 2 additions and 2 deletions
|
@ -18,14 +18,14 @@
|
||||||
{{ if and (isset .Params "color") (not (eq .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 | css.Sass }} -->
|
{{ $localColorStyles := $localCss | css.Sass }}
|
||||||
<link rel="stylesheet" href="{{ $localColorStyles.Permalink }}">
|
<link rel="stylesheet" href="{{ $localColorStyles.Permalink }}">
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<!-- Theme Variables -->
|
<!-- Theme Variables -->
|
||||||
{{ $colorCss := resources.Get (printf "css/color/%s.scss" ($.Site.Params.ThemeColor | default "orange")) }}
|
{{ $colorCss := resources.Get (printf "css/color/%s.scss" ($.Site.Params.ThemeColor | default "orange")) }}
|
||||||
{{ $css := slice $colorCss $defaultStyles | resources.Concat "css/base.scss" }}
|
{{ $css := slice $colorCss $defaultStyles | resources.Concat "css/base.scss" }}
|
||||||
{{ $options := (dict "targetPath" "styles.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 | css.Sass $options }} -->
|
{{ $styles := $css | css.Sass $options }}
|
||||||
<link rel="stylesheet" href="{{ $styles.Permalink }}">
|
<link rel="stylesheet" href="{{ $styles.Permalink }}">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue