mirror of
https://github.com/docker/docs.git
synced 2026-04-03 17:59:01 +07:00
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>
11 lines
339 B
HTML
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" />
|