Move all layouts to platters theme
This commit is contained in:
parent
de8101efed
commit
66adceaf24
91 changed files with 0 additions and 0 deletions
19
themes/platters/layouts/partials/resources/root_css.html
Normal file
19
themes/platters/layouts/partials/resources/root_css.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
{{ $stylesheets := slice (resources.Get "styles/railroad.css")
|
||||
(resources.Get "styles/monokai.css")
|
||||
| append (resources.Match "styles/root/*.css" | sort) }}
|
||||
{{ if not hugo.IsProduction }}
|
||||
{{ $stylesheets = $stylesheets | append (resources.Get "styles/development.css") }}
|
||||
{{ end }}
|
||||
|
||||
{{ $rootStylesheets := slice }}
|
||||
{{ range $stylesheets }}
|
||||
{{ $rootStylesheets = $rootStylesheets | append (. | resources.ExecuteAsTemplate .Name .) }}
|
||||
{{ end }}
|
||||
|
||||
{{ if hugo.IsProduction }}
|
||||
{{ $rootStylesheets = slice ($rootStylesheets
|
||||
| resources.Concat "styles/root.css"
|
||||
| fingerprint "md5") }}
|
||||
{{ end }}
|
||||
|
||||
{{ return $rootStylesheets }}
|
Loading…
Add table
Add a link
Reference in a new issue