Files
docker-docs/layouts/partials/utils/css.html
David Karlsson 27290ad524 hugo: replace deprecated resources.PostCSS method
hugo --logLevel info
...
INFO  deprecated: resources.PostCSS was deprecated in Hugo v0.128.0 and will be removed in a future release. Use css.PostCSS.

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-08-19 16:50:57 +02:00

11 lines
339 B
HTML

{{ $styles := resources.Get "css/styles.css" }}
{{ $styles = $styles | css.PostCSS }}
{{ if hugo.IsProduction }}
{{ $styles = $styles | minify | fingerprint | resources.PostProcess }}
<style>
/* hide img injected by prod scripts */
body > img { display: none }
</style>
{{ end }}
<link href="{{ $styles.Permalink }}" rel="stylesheet" />