From 03a185539d8484aa49641fc498089666df592c48 Mon Sep 17 00:00:00 2001 From: Ben Dichter Date: Fri, 9 Oct 2026 12:58:26 -0400 Subject: [PATCH] Load the Bootstrap stylesheet once head.html compiled plugins.scss twice and linked both results: an unminified copy before style.css and a minified copy after it. The second copy repeats every rule of the first later in the cascade, so the first had no effect on rendering. This removes it, which drops a 280 KB render-blocking stylesheet from every page. Co-Authored-By: Claude Opus 5.5 (1M context) --- layouts/partials/essentials/head.html | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/layouts/partials/essentials/head.html b/layouts/partials/essentials/head.html index a3f6b1b..8d50222 100644 --- a/layouts/partials/essentials/head.html +++ b/layouts/partials/essentials/head.html @@ -25,16 +25,6 @@ {{/* Styles */}} -{{ $plugin := slice }} -{{ $plugin := $plugin | append (resources.Get "scss/plugins.scss" | resources.ExecuteAsTemplate "plugins.scss" . | toCSS) }} -{{ $plugin := $plugin | resources.Concat "/css/plugins.css" }} - -{{ if hugo.IsProduction }} - {{ $plugin = $plugin | fingerprint "sha256" }} - {{ $plugin = $plugin | resources.PostProcess }} -{{ end }} - - {{ $styles := dict "transpiler" "libsass" "targetPath" "css/styles.css" }} {{ with resources.Get "css/style.css" | minify | fingerprint }}