forked from mirror/Mainroad
parse go templates in customCSS
This commit is contained in:
parent
bbb8b7f5c8
commit
fb786bc6db
1 changed files with 1 additions and 1 deletions
|
@ -3,6 +3,6 @@
|
|||
{{ $v2Styles := resources.Get "css/v2-styles.css" | resources.ExecuteAsTemplate "css/v2-styles.css" . | resources.Minify -}}
|
||||
<link rel="stylesheet" href="{{ $v2Styles.RelPermalink }}">
|
||||
{{ range .Site.Params.customCSS -}}
|
||||
{{ $customStyle := resources.Get . | resources.Minify -}}
|
||||
{{ $customStyle := resources.Get . | resources.ExecuteAsTemplate . $ | resources.Minify -}}
|
||||
<link rel="stylesheet" href="{{ $customStyle.RelPermalink }}">
|
||||
{{- end }}
|
Loading…
Add table
Reference in a new issue