{{- $page := .page }} {{- $outputFormat := .outputFormat }} {{- if not $page }} {{- $page = . }} {{- $outputFormat = partial "output-format.hugo" $page }} {{- end }} {{- with $page }} {{- $assetBusting := not .Site.Params.disableAssetsBusting }} {{ "" | safeHTML }} {{- $autotemplate := resources.Get "css/theme-auto.css" }} {{- $autocss := $autotemplate | resources.ExecuteAsTemplate "css/theme-auto.css" .Site.Home }} {{- $c := "" }} {{- $c = "" }} {{- $themevariants := slice | append (.Site.Params.themeVariant | default "auto" ) }} {{- with index $themevariants 0 }} {{- end }} {{- $f := printf "/static/css/format-%s.css" $outputFormat }} {{- if partialCached "fileExists.hugo" $f $f }} {{- end }} {{- partial "dependencies.html" (dict "page" . "location" "header" "outputFormat" $outputFormat) }} {{- end }}