From 727a6ffd59ce82a91f402a9a106f878ebfe5350b Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Mon, 8 May 2023 20:07:26 -0700 Subject: [PATCH] Fix the page CSS partial so that it generates a new stylesheet for each page --- layouts/partials/resources/page_css.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/resources/page_css.html b/layouts/partials/resources/page_css.html index f5ff4d9..e0470fa 100644 --- a/layouts/partials/resources/page_css.html +++ b/layouts/partials/resources/page_css.html @@ -1,5 +1,5 @@ {{ $pageCSS := dict }} {{ with .Resources.Match "*.css" }} - {{ $pageCSS = . | resources.Concat "page.css" | fingerprint "md5" }} + {{ $pageCSS = . | resources.Concat (printf "%s/page.css" $.File.Dir) | fingerprint "md5" }} {{ end }} {{ return $pageCSS }}