From 08e58f5f773f935a97ecd0ce32acc62c2bc40ad4 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Mon, 7 Dec 2020 22:59:51 +0530 Subject: [PATCH] head: commonize stylesheet resource --- layouts/partials/head.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 055701f8..baaf732f 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -21,12 +21,12 @@ {{- end}} +{{- $stylesheet := (resources.Match "css/*.css") | resources.Concat "assets/css/stylesheet.css" | minify -}} {{- if not .Site.Params.assets.disableFingerprinting }} -{{- $stylesheet := (resources.Match "css/*.css") | resources.Concat "assets/css/stylesheet.css" | minify | fingerprint -}} +{{- $stylesheet := $stylesheet | fingerprint -}} {{- else}} -{{- $stylesheet := (resources.Match "css/*.css") | resources.Concat "assets/css/stylesheet.css" | minify -}} {{- end}}