mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-06-08 17:22:46 +00:00
Fix a bug
Fix a bug that CSS is not processed correctly when `ananke_process_css = true` and `HUGO_ENV=production`.
This commit is contained in:
parent
988c731a57
commit
34881f6f0e
@ -9,7 +9,7 @@
|
||||
{{ $style := . | resources.ToCSS $options | resources.PostCSS (dict "use" "postcss-cssnext") | minify }}
|
||||
{{/* We fingerprint in production to ensure cache busting */}}
|
||||
{{ if eq (getenv "HUGO_ENV") "production" }}
|
||||
{{ $style = . | fingerprint }}
|
||||
{{ $style = $style | fingerprint }}
|
||||
{{ end }}
|
||||
{{ with $style }}
|
||||
<link rel="stylesheet" href="{{ .RelPermalink }}" >
|
||||
|
Loading…
x
Reference in New Issue
Block a user