From 3868928788faee2fed1e1359085330f683f0ef71 Mon Sep 17 00:00:00 2001 From: Toshaan Bharvani Date: Tue, 28 Dec 2021 16:04:57 +0100 Subject: [PATCH] change minify to work with hugo >0.90 Signed-off-by: Toshaan Bharvani --- .../layouts/partials/header.html | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/themes/openpowerfoundation/layouts/partials/header.html b/themes/openpowerfoundation/layouts/partials/header.html index 982ee83..77cb2cd 100644 --- a/themes/openpowerfoundation/layouts/partials/header.html +++ b/themes/openpowerfoundation/layouts/partials/header.html @@ -32,18 +32,19 @@ {{ $variables := resources.Get "css/variables.scss"}} {{ $variables = $variables | resources.ExecuteAsTemplate "variables.scss" . }} - {{ $header := resources.Get "css/header.scss" | resources.Minify }} - {{ $promo := resources.Get "css/promo.scss" | resources.Minify }} - {{ $home := resources.Get "css/home.scss" | resources.Minify }} - {{ $groups := resources.Get "css/groups.scss" | resources.Minify }} - {{ $bod := resources.Get "css/bod.scss" | resources.Minify }} - {{ $timeline := resources.Get "css/timeline.scss" | resources.Minify }} - {{ $pages := resources.Get "css/pages.scss" | resources.Minify }} - {{ $footer := resources.Get "css/footer.scss" | resources.Minify }} - {{ $changelog := resources.Get "css/changelog.scss" | resources.Minify }} + {{ $header := resources.Get "css/header.scss" }} + {{ $promo := resources.Get "css/promo.scss" }} + {{ $home := resources.Get "css/home.scss" }} + {{ $groups := resources.Get "css/groups.scss" }} + {{ $bod := resources.Get "css/bod.scss" }} + {{ $timeline := resources.Get "css/timeline.scss" }} + {{ $pages := resources.Get "css/pages.scss" }} + {{ $footer := resources.Get "css/footer.scss" }} + {{ $changelog := resources.Get "css/changelog.scss" }} {{ $scss := slice $variables $header $promo $home $groups $bod $timeline $pages $footer $changelog | resources.Concat "css/custom.scss" }} {{ $css := $scss | toCSS (dict "targetPath" "css/custom.min.css" "outputStyle" "compressed" "enableSourceMap" true) }} - + {{ $minicss := $css | resources.Minify }} +