Process CSS resources as lists (call {{ range }} on them)
All the CSS resource partials return lists now.
This commit is contained in:
parent
6740e7b61d
commit
4d14ea9ab2
1 changed files with 2 additions and 2 deletions
|
@ -20,10 +20,10 @@
|
||||||
{{ range . }}<link rel="stylesheet" as="style" href="{{ .Permalink }}">{{ end }}
|
{{ range . }}<link rel="stylesheet" as="style" href="{{ .Permalink }}">{{ end }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- with partial "resources/section_css.html" . -}}
|
{{- with partial "resources/section_css.html" . -}}
|
||||||
<link rel="stylesheet" as="style" href="{{ .RelPermalink }}">
|
{{ range . }}<link rel="stylesheet" as="style" href="{{ .RelPermalink }}">{{ end }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- with partial "resources/page_css.html" . -}}
|
{{- with partial "resources/page_css.html" . -}}
|
||||||
<link rel="stylesheet" as="style" href="{{ .RelPermalink }}">
|
{{ range . }}<link rel="stylesheet" as="style" href="{{ .RelPermalink }}">{{ end }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{ block "styles" . }}{{ end }}
|
{{ block "styles" . }}{{ end }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue