Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/monkeyWzr/hugo-theme-cactus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorweru <fromweru@gmail.com>2021-06-10 00:12:04 +0300
committerweru <fromweru@gmail.com>2021-06-10 00:12:04 +0300
commit8a6edc23d2ffc67be56a5d8923b4fa64c08f6f21 (patch)
treefeb4d4ab778d7c4dc556c765eb38fe99923adff7 /layouts
parente735159c5e11fab2d48ed355443b3f7d055ccb8b (diff)
parent374b41dc3d0c404f2e0680cc7ac5d5a57b12f0c9 (diff)
Merge branch 'sass'
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/head.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 04c8023..b875872 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -13,7 +13,11 @@
{{ .Scratch.Set "colortheme" .Site.Params.Colortheme }}
{{ end }}
{{ $colortheme := .Scratch.Get "colortheme" }}
- <link rel="stylesheet" href="{{ $colortheme | printf "css/style-%s.css" | absURL }}">
+
+ {{- $options := (dict "targetPath" "css/styles.css" "outputStyle" "compressed" "enableSourceMap" "true") -}}
+ {{- $styles := resources.Get "sass/style.sass" | resources.ExecuteAsTemplate "sass/style.sass" . | resources.ToCSS $options | resources.Fingerprint "sha512" }}
+ <link rel="stylesheet" href="{{ $styles.Permalink }}" integrity="{{ $styles.Data.Integrity }}">
+
<!-- Custom CSS -->
{{ range .Site.Params.css }} <link rel="stylesheet" href="{{ . | absURL }}"> {{ end }}
{{ `