commit ee4d4dad7cc9e46063882241b0cbdc6233a0c807 parent 21c2dd1c4d493ba707402ffd0d77aed29a3babe7 Author: Michael Neuper <michael@michaelneuper.com> Date: Sat, 4 Nov 2023 00:51:12 +0200 Load fonts later Diffstat:
| M | assets/sass/layouts/common.scss | | | 2 | +- |
| M | layouts/_default/baseof.html | | | 5 | +++++ |
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/assets/sass/layouts/common.scss b/assets/sass/layouts/common.scss @@ -1,7 +1,7 @@ @use "sass:math"; @import "../vars"; -@import "../fonts"; +// @import "../fonts"; // global * { diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html @@ -83,6 +83,11 @@ {{ partial "footer.html" . }} </div> + {{ $options := dict "transpiler" "dartsass" "targetPath" "css/index.css" }} + {{ with resources.Get "sass/layouts/index.scss" | toCSS $options | postCSS | minify | fingerprint }} + <link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"> + {{ end }} + <!-- custom js --> {{ range .Site.Params.customJS }} <script src="{{ . | absURL }}"></script>