Skip to content

Commit

Permalink
fix: replace deprecated resources.PostCSS (#458)
Browse files Browse the repository at this point in the history
  • Loading branch information
imfing authored Sep 22, 2024
1 parent c70900c commit 9173f59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/head-css.html
Original file line number Diff line number Diff line change
@@ -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) }}
<link href="{{ $styles.RelPermalink }}" rel="stylesheet" />
{{- else }}
{{- $styles := resources.Get "css/compiled/main.css" -}}
Expand Down

0 comments on commit 9173f59

Please sign in to comment.