summaryrefslogtreecommitdiff
path: root/themes/spectral/layouts/partials/stylesheets.html
blob: 911908acd464942cb9c49ee9ccc3073cef66ab4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{{ $css := resources.Get "css/main.css" | minify | fingerprint "sha512" }}
<link rel="stylesheet" href="{{ $css.RelPermalink }}" integrity="{{ $css.Data.Integrity }}">

{{ $noscript_css := resources.Get "css/noscript.css" | minify | fingerprint "sha512" }}
<noscript><link rel="stylesheet" href="{{ $noscript_css.RelPermalink }}" integrity="{{ $noscript_css.Data.Integrity }}"></noscript>

{{ with .Site.Params.custom_css }}
{{ $custom_css := resources.Get . | minify | fingerprint "sha512" }}
<link rel="stylesheet" href="{{ $custom_css.RelPermalink }}" integrity="{{ $custom_css.Data.Integrity }}">
{{ end }}

{{ with .Site.Params.custom_sass }}
{{ $custom_sass := resources.Get . | resources.ToCSS | minify | fingerprint "sha512" }}
<link rel="stylesheet" href="{{ $custom_sass.RelPermalink }}" integrity="{{ $custom_sass.Data.Integrity }}">
{{ end }}