fix(baseof.html): resolve deprecated resources.PostCSS

ERROR deprecated: resources.PostCSS was deprecated in Hugo v0.128.0 and will be removed in Hugo 0.141.0. Use css.PostCSS instead.
This commit is contained in:
Mostafa Hadadian 2024-12-25 18:31:55 +01:00 committed by GitHub
parent 60c5c47750
commit 738f2ce375
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -57,7 +57,7 @@
<!-- Main CSS -->
{{ $css := resources.Get "css/main.css" }}
{{ $css = $css | resources.PostCSS }}
{{ $css = $css | css.PostCSS }}
{{ if hugo.IsProduction }}
{{ $css = $css | minify | fingerprint | resources.PostProcess }}
{{ end }}