Only include .FirstSection's CSS if it's not the home page

This commit is contained in:
Eryn Wells 2022-10-09 17:34:51 -07:00
parent 06819504c2
commit c48d7e0f3b

View file

@ -28,7 +28,7 @@
<link rel="stylesheet" as="style" href="/styles/development.css"> <link rel="stylesheet" as="style" href="/styles/development.css">
{{ end }} {{ end }}
{{ block "styles" . }}{{ end }} {{ block "styles" . }}{{ end }}
{{ if gt (len .Section) 0 }} {{ if not .FirstSection.IsHome }}
{{ range .FirstSection.Resources.Match "*.css" }} {{ range .FirstSection.Resources.Match "*.css" }}
<link rel="stylesheet" as="style" href="{{ .Permalink }}"> <link rel="stylesheet" as="style" href="{{ .Permalink }}">
{{ end }} {{ end }}