Fix the page CSS partial so that it generates a new stylesheet for each page

This commit is contained in:
Eryn Wells 2023-05-08 20:07:26 -07:00
parent 8296cc6e43
commit 727a6ffd59

View file

@ -1,5 +1,5 @@
{{ $pageCSS := dict }} {{ $pageCSS := dict }}
{{ with .Resources.Match "*.css" }} {{ with .Resources.Match "*.css" }}
{{ $pageCSS = . | resources.Concat "page.css" | fingerprint "md5" }} {{ $pageCSS = . | resources.Concat (printf "%s/page.css" $.File.Dir) | fingerprint "md5" }}
{{ end }} {{ end }}
{{ return $pageCSS }} {{ return $pageCSS }}