From c48d7e0f3b56e1cdf853d8200730ec4e7665d685 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sun, 9 Oct 2022 17:34:51 -0700 Subject: [PATCH] Only include .FirstSection's CSS if it's not the home page --- layouts/_default/baseof.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index e9dda76..d912354 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -28,7 +28,7 @@ {{ end }} {{ block "styles" . }}{{ end }} - {{ if gt (len .Section) 0 }} + {{ if not .FirstSection.IsHome }} {{ range .FirstSection.Resources.Match "*.css" }} {{ end }}