diff --git a/layouts/partials/head-css.html b/layouts/partials/head-css.html
index b0a900fe..d4f999fd 100644
--- a/layouts/partials/head-css.html
+++ b/layouts/partials/head-css.html
@@ -1,6 +1,6 @@
{{- if and (not hugo.IsProduction) (eq hugo.Environment "theme") }}
{{- $styles := resources.Get "css/styles.css" }}
- {{- $styles = $styles | resources.PostCSS (dict "inlineImports" true) }}
+ {{- $styles = $styles | postCSS (dict "inlineImports" true) }}
{{- else }}
{{- $styles := resources.Get "css/compiled/main.css" -}}