Process CSS resources as lists (call {{ range }} on them)

All the CSS resource partials return lists now.
This commit is contained in:
Eryn Wells 2023-07-14 08:25:36 -07:00
parent 6740e7b61d
commit 4d14ea9ab2

View file

@ -20,10 +20,10 @@
{{ range . }}<link rel="stylesheet" as="style" href="{{ .Permalink }}">{{ end }}
{{- end -}}
{{- with partial "resources/section_css.html" . -}}
<link rel="stylesheet" as="style" href="{{ .RelPermalink }}">
{{ range . }}<link rel="stylesheet" as="style" href="{{ .RelPermalink }}">{{ end }}
{{- end -}}
{{- with partial "resources/page_css.html" . -}}
<link rel="stylesheet" as="style" href="{{ .RelPermalink }}">
{{ range . }}<link rel="stylesheet" as="style" href="{{ .RelPermalink }}">{{ end }}
{{- end -}}
{{ block "styles" . }}{{ end }}