From 21292ae5096fc9f1b350b3107b02d94ec9577e83 Mon Sep 17 00:00:00 2001 From: minoplhy Date: Thu, 14 Mar 2024 02:46:45 +0700 Subject: [PATCH] hugo-bearblog : only get required stylesheet --- layouts/_default/baseof.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index cb1c1d2..f43351f 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -17,7 +17,7 @@ {{- /* CSS stylesheet */}} - {{- $stylesheet := (resources.Match "css/*.css") | resources.Concat "css/style.css" | resources.Minify }} + {{- $stylesheet := (resources.Get "css/style.css") | resources.Minify }} {{- if not site.Params.assets.disableFingerprinting }} {{- $stylesheet := $stylesheet | fingerprint }} @@ -41,6 +41,7 @@ +
{{- partial "header.html" . -}}