Only convert scss files to css
This is a getaround for https://github.com/gohugoio/hugo/issues/7207, which whilst poerhaps correct shouldn't be necessary
This commit is contained in:
parent
27f1f51eda
commit
56658a4d27
1 changed files with 7 additions and 1 deletions
|
@ -1,2 +1,8 @@
|
|||
{{ $style := resources.Get . | toCSS | minify | fingerprint }}
|
||||
{{ $style := resources.Get . }}
|
||||
|
||||
{{ if strings.HasSuffix . ".scss" }}
|
||||
{{ $style = toCSS $style }}
|
||||
{{ end }}
|
||||
|
||||
{{ $style = minify $style | fingerprint}}
|
||||
<link rel="stylesheet" href="{{ $style.RelPermalink }}" integrity="{{ $style.Data.Integrity }}" />
|
||||
|
|
Loading…
Reference in a new issue