{{- $page := .page }}
{{- $outputFormat := .outputFormat }}
{{- if not $page }}
{{- $page = . }}
{{- $outputFormat = partial "output-format.hugo" $page }}
{{- end }}
{{- with $page }}
{{- $assetBusting := not .Site.Params.disableAssetsBusting }}
{{ "" | safeHTML }}
{{- $themevariants := partial "get-theme-variants.hugo" . }}
{{- if $page.IsHome }}
{{- $autotemplate := resources.Get "css/theme-auto.css" }}
{{- range $themevariants }}
{{- if collections.IsSet . "auto" }}
{{- $autocss := $autotemplate | resources.ExecuteAsTemplate (printf "css/theme-%s.css" .identifier) . }}
{{- /* the following line causes Hugo to generate our theme css file - although it is in comments */}}
{{- end }}
{{- end }}
{{- end }}
{{- with index $themevariants 0 }}
{{- end }}
{{- $f := printf "/static/css/format-%s.css" $outputFormat }}
{{- if partialCached "fileExists.hugo" $f $f }}
{{- end }}
{{- end }}