From f1e3e40651a6b88641fbab496f9cd0c9a9f47d59 Mon Sep 17 00:00:00 2001 From: Hamcha Date: Mon, 13 May 2024 18:37:32 +0200 Subject: [PATCH] defer copy css --- themes/fesite/assets/scss/main.scss | 2 -- themes/fesite/layouts/partials/head.html | 29 ++++++++---------------- 2 files changed, 10 insertions(+), 21 deletions(-) diff --git a/themes/fesite/assets/scss/main.scss b/themes/fesite/assets/scss/main.scss index d26aa46..56067b5 100644 --- a/themes/fesite/assets/scss/main.scss +++ b/themes/fesite/assets/scss/main.scss @@ -1,5 +1,3 @@ -@import url("https://rsms.me/inter/inter.css"); - @import "__var.scss"; @import "layout.scss"; @import "home.scss"; diff --git a/themes/fesite/layouts/partials/head.html b/themes/fesite/layouts/partials/head.html index c06abb6..85d975d 100644 --- a/themes/fesite/layouts/partials/head.html +++ b/themes/fesite/layouts/partials/head.html @@ -4,22 +4,15 @@ {{ $title := print .Site.Title " | " .Title }} {{ if .IsHome }}{{ $title = .Site.Title }}{{ end }} {{ $title }} - - + + {{ $normalize := resources.Get "css/normalize.css"| minify}} + + {{ $style := resources.Get "scss/main.scss" | resources.ToCSS (dict "targetPath" "css/main.css" "enableSourceMap" true ) | minify | resources.Fingerprint }} @@ -28,8 +21,6 @@ {{ range .AlternativeOutputFormats -}} {{ printf ` ` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}} - - + + \ No newline at end of file