Merge customCSS inside main CSS

This commit is contained in:
Quentin Barbe 2021-02-19 23:45:09 +01:00
parent b43d933019
commit 2b1f281384
No known key found for this signature in database
GPG Key ID: C479C6EF498510C2
2 changed files with 5 additions and 4 deletions

View File

@ -530,3 +530,8 @@ ul.language-select > li, ul.footer-menu > li {
max-width: 10em;
}
}
{{ range site.Params.customCSS }}
{{ $custom := resources.Get . }}
{{ $custom.Content }}
{{ end }}

View File

@ -16,10 +16,6 @@
{{ partial "resource.html" (dict "context" . "type" "css" "filename" "css/main.css") }}
{{ range .Site.Params.customCSS -}}
{{ partial "resource.html" (dict "context" $ "type" "css" "filename" . ) }}
{{- end }}
{{ range .Site.Params.customJS -}}
{{ partial "resource.html" (dict "context" $ "type" "js" "filename" . ) }}
{{- end }}