2023-10-03 08:55:13 -07:00
|
|
|
{{ $stylesheets := slice (resources.Get "styles/railroad.css")
|
2023-07-14 08:24:30 -07:00
|
|
|
(resources.Get "styles/monokai.css")
|
|
|
|
| append (resources.Match "styles/root/*.css" | sort) }}
|
2022-11-08 17:50:11 -08:00
|
|
|
{{ if not hugo.IsProduction }}
|
2023-07-14 08:30:16 -07:00
|
|
|
{{ $stylesheets = $stylesheets | append (resources.Get "styles/development.css") }}
|
2022-11-08 17:50:11 -08:00
|
|
|
{{ end }}
|
2023-05-19 17:05:49 -07:00
|
|
|
|
|
|
|
{{ $rootStylesheets := slice }}
|
2023-07-14 08:24:30 -07:00
|
|
|
{{ range $stylesheets }}
|
|
|
|
{{ $rootStylesheets = $rootStylesheets | append (. | resources.ExecuteAsTemplate .Name .) }}
|
|
|
|
{{ end }}
|
|
|
|
|
2023-05-19 17:05:49 -07:00
|
|
|
{{ if hugo.IsProduction }}
|
2023-07-14 08:24:30 -07:00
|
|
|
{{ $rootStylesheets = slice ($rootStylesheets
|
|
|
|
| resources.Concat "styles/root.css"
|
|
|
|
| fingerprint "md5") }}
|
2023-05-19 17:05:49 -07:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ return $rootStylesheets }}
|