diff --git a/assets/css/main.css b/assets/css/main.css index cf30362..f21db6b 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -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 }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 4a4cc42..04c6338 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -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 }}