Takubeh/layouts/partials/styles.html

10 lines
354 B
HTML
Raw Normal View History

2024-02-02 12:39:18 +01:00
{{ $style := resources.Get "styles/main.scss" }}
{{ with $style }}
{{ $styleCSS := . | toCSS }}
{{ if not $.Site.Params.debug }}
{{ $styleCSS = $styleCSS | minify }}
{{ end }}
{{ $styleCSS = $styleCSS | fingerprint }}
<link rel="stylesheet" href="{{ $styleCSS.Permalink }}" integrity="{{ $styleCSS.Data.Integrity }}">
{{ end }}