{{- $outputFormat := "html" }} {{- with .Store.Get "relearnOutputFormat" }} {{- $outputFormat = . }} {{- else }} {{- warnf "WARNING no key `relearnOutputFormat` found in page store, set one by providing the file `layouts/_default/view/storeOutputFormat..html` for your self-defined output format; see https://mcshelby.github.io/hugo-theme-relearn/basics/migration#600" }} {{- end }} {{- $assetBusting := partialCached "assetbusting.gotmpl" . }} {{- /* https://github.com/filamentgroup/loadCSS/blob/master/README.md#how-to-use */}} {{- $themevariants := partialCached "_relearn/themeVariants.gotmpl" . }} {{- with index $themevariants 0 }} {{- end }} {{- $f := printf "/static/css/format-%s.css" $outputFormat }} {{- if or (partialCached "_relearn/fileExists.gotmpl" $f $f) (resources.Get (printf "/css/format-%s.css" $outputFormat)) }} {{- end }}