diff --git a/layouts/partials/style.html b/layouts/partials/style.html
index 51eec69..7012e30 100644
--- a/layouts/partials/style.html
+++ b/layouts/partials/style.html
@@ -1,8 +1,2 @@
-{{ $style := resources.Get . }}
-
-{{ if strings.HasSuffix . ".scss" }}
- {{ $style = toCSS $style }}
-{{ end }}
-
-{{ $style = minify $style | fingerprint}}
+{{ $style := resources.Get . | toCSS | minify | fingerprint }}