Merge pull request #79 from forty/forty/move-custom-css-in-main-css

Merge customCSS inside main CSS
This commit is contained in:
Dmitry Kolosov 2021-02-22 12:48:39 +03:00 committed by GitHub
commit ec4911a3ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 }}