summaryrefslogtreecommitdiff
path: root/themes/spectral/layouts/partials/stylesheets.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/spectral/layouts/partials/stylesheets.html')
-rw-r--r--themes/spectral/layouts/partials/stylesheets.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/themes/spectral/layouts/partials/stylesheets.html b/themes/spectral/layouts/partials/stylesheets.html
new file mode 100644
index 0000000..911908a
--- /dev/null
+++ b/themes/spectral/layouts/partials/stylesheets.html
@@ -0,0 +1,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 }}