diff options
Diffstat (limited to 'layouts/partials/head/styles.html')
-rw-r--r-- | layouts/partials/head/styles.html | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/layouts/partials/head/styles.html b/layouts/partials/head/styles.html index 56ca3a6..624cdcb 100644 --- a/layouts/partials/head/styles.html +++ b/layouts/partials/head/styles.html @@ -2,3 +2,13 @@ {{ $main_template := resources.Get "sass/main.scss" }} {{ $main_style := $main_template | resources.ExecuteAsTemplate "main_parsed.scss" . | toCSS $main_options | resources.Minify }} <link rel="stylesheet" href="{{ $main_style.RelPermalink }}"> + +{{ if .Site.Params.custom_css }} +{{ range .Site.Params.custom_css }} + {{ $custom_template := resources.Get . }} + {{ if $custom_template }} + {{ $custom_style := $custom_template | resources.ToCSS | resources.Minify }} + <link rel="stylesheet" href="{{ $custom_style.RelPermalink }}"> + {{ end }} +{{ end }} +{{ end }}
\ No newline at end of file |