From 1bc8dfc00618b46198f029d25d5df0475444c168 Mon Sep 17 00:00:00 2001 From: lucperkins Date: Wed, 25 Jul 2018 15:18:53 -0700 Subject: [PATCH] Re-work extra CSS logic for .Params.css --- layouts/partials/css.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/layouts/partials/css.html b/layouts/partials/css.html index ad89cadfbfa17..b5341a6c55595 100644 --- a/layouts/partials/css.html +++ b/layouts/partials/css.html @@ -1,6 +1,5 @@ {{- $mainSass := "sass/styles.sass" }} {{- $caseStudySass := "sass/case_study_styles.sass" }} -{{- $extraPageCss := split .Params.css "," }} {{- if .Site.IsServer }} {{- $mainCssOpts := (dict "targetPath" "css/styles.css") }} @@ -26,7 +25,9 @@ {{- if eq .Params.class "gridPage" }} {{- end }} -{{- range $extraPageCss }} +{{- with .Params.css }} +{{- range (split . ",") }} {{- $url := trim . " " | relURL }} +{{- end }} {{- end }} \ No newline at end of file