1
Fork 0

Revert "Only convert scss files to css"

This reverts commit 56658a4d27.

https://github.com/gohugoio/hugo/issues/7207 is merged
This commit is contained in:
Jake Howard 2020-05-28 18:00:03 +01:00
parent dc1b7db986
commit b9adeb7cd4
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -1,8 +1,2 @@
{{ $style := resources.Get . }}
{{ if strings.HasSuffix . ".scss" }}
{{ $style = toCSS $style }}
{{ end }}
{{ $style = minify $style | fingerprint}}
{{ $style := resources.Get . | toCSS | minify | fingerprint }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}" integrity="{{ $style.Data.Integrity }}" />