{{ $styles := slice }} {{ $stylesLazy := slice }} {{ range site.Params.plugins.css }} {{ if findRE "^http" .link }} {{ else }} {{ if not .lazy }} {{ $styles = $styles | append (resources.Get .link) }} {{ else }} {{ $stylesLazy = $stylesLazy | append (resources.Get .link) }} {{ end }} {{ end }} {{ end }} {{/* main style */}} {{ $styles = $styles | append (resources.Get "scss/main.scss" | toCSS) }} {{ $styles = $styles | append (resources.Get "fonts/fonts.css" | toCSS) }} {{ $styles = $styles | resources.Concat "css/style.css" }} {{ $styles = $styles | resources.PostCSS }} {{ $stylesLazy = $stylesLazy | resources.Concat "css/style-lazy.css" }} {{ $stylesLazy = $stylesLazy | resources.PostCSS }} {{ if hugo.IsProduction }} {{ $styles = $styles | resources.ExecuteAsTemplate "css/style.css" . | minify | fingerprint | resources.PostProcess }} {{ $stylesLazy = $stylesLazy | resources.ExecuteAsTemplate "css/style-lazy.css" . | minify | fingerprint | resources.PostProcess }} {{ else }} {{ $styles = $styles | resources.ExecuteAsTemplate "css/style.css" . }} {{ $stylesLazy = $stylesLazy | resources.ExecuteAsTemplate "css/style-lazy.css" . }} {{ end }} {{/* styles */}} {{/* styles lazy */}}