Create assets/styles/root to hold all the fragments of the root stylesheet. This should make it easier to find and hack on style. Yay!
21 lines
849 B
HTML
21 lines
849 B
HTML
{{ $allStylesheets := slice (resources.Get "styles/root.css")
|
|
(resources.Get "styles/railroad.css")
|
|
(resources.Get "styles/monokai.css")
|
|
| append (resources.Match "styles/root/*.css" | sort) }}
|
|
{{ if not hugo.IsProduction }}
|
|
{{ $allStylesheets = $allStylesheets | append (resources.Get "styles/development.css") }}
|
|
{{ end }}
|
|
|
|
{{ $rootStylesheets := slice }}
|
|
{{ if hugo.IsProduction }}
|
|
{{ $rootStylesheets = $allStylesheets
|
|
| resources.ExecuteAsTemplate "styles/root.css" .
|
|
| resources.Concat "styles/root.css"
|
|
| minify | fingerprint "md5" }}
|
|
{{ else }}
|
|
{{ range $allStylesheets }}
|
|
{{ $rootStylesheets = $rootStylesheets | append (. | resources.ExecuteAsTemplate .Name .) }}
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
{{ return $rootStylesheets }}
|