From d74ad93c18115661e19ed115b3e8cc01a9e03764 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Wed, 9 Dec 2020 17:17:22 +0530 Subject: [PATCH] head: add *.css under assets/css/extended/ to bundle it with stylesheet.css as single resource minified - added to the end so that default vars are overriden properly --- assets/css/extended/blank.css | 0 layouts/partials/head.html | 7 ++++++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 assets/css/extended/blank.css diff --git a/assets/css/extended/blank.css b/assets/css/extended/blank.css new file mode 100644 index 0000000..e69de29 diff --git a/layouts/partials/head.html b/layouts/partials/head.html index baaf732..4a4d466 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -21,7 +21,12 @@ {{- end}} -{{- $stylesheet := (resources.Match "css/*.css") | resources.Concat "assets/css/stylesheet.css" | minify -}} +{{- $common := (resources.Match "css/*.css") | resources.Concat "assets/css/common.css" }} +{{- $extended := (resources.Match "css/extended/*.css") | resources.Concat "assets/css/extended.css" }} +{{- /* bundle all required css */}} +{{- /* Add extended css after theme style */ -}} +{{- $stylesheet := (slice $common $extended) | resources.Concat "assets/css/stylesheet.css" | minify }} + {{- if not .Site.Params.assets.disableFingerprinting }} {{- $stylesheet := $stylesheet | fingerprint -}}