{{ $stylesheets := slice }} {{ with .Resources.Match "*.css" }} {{ range . }} {{ $stylesheets = $stylesheets | append (. | resources.ExecuteAsTemplate .Name .) }} {{ end }} {{ if hugo.IsProduction }} {{ $stylesheets = slice ($stylesheets | resources.Concat (printf "%s/page.css" $.File.Dir) | fingerprint "md5") }} {{ end }} {{ end }} {{ return $stylesheets }}