{{- /* Styles */}} {{- $theme := resources.Get "sass/style.scss" }} {{- /* resources.ToCSS was deprecated in Hugo v0.128.0 and will be removed in a future release */}} {{- if ge site.Hugo.Version "0.128.0" -}} {{- $theme = $theme | css.Sass }} {{- else -}} {{- $theme = $theme | resources.ToCSS }} {{- end -}} {{- /* order is important */}} {{- /* to ass more styles use the following format: slice $theme $style1 $style2 $style3 ... */}} {{- $core := (slice $theme) | resources.Concat "assets/css/core.css" }} {{- $extended := (resources.Match "css/extended/*.css") | resources.Concat "css/extended.css" }} {{- /* bundle all required css */}} {{- /* Add extended css after theme style */ -}} {{- $stylesheet := (slice $core $extended) | resources.Concat "css/stylesheet.css" | minify }} {{- if not site.Params.assets.disable_fingerprinting -}} {{- $stylesheet := $stylesheet | fingerprint }} {{ printf `` $stylesheet.RelPermalink $stylesheet.Data.Integrity | safeHTML }} {{- else }} {{- end }}