From 1a88816781c4d7d5dee7263aa32664ade98646b8 Mon Sep 17 00:00:00 2001 From: JamesFlare1212 Date: Sun, 7 Apr 2024 22:41:27 -0400 Subject: [PATCH] defer non-critical css --- layouts/partials/css.html | 482 +++++++++++++++++++++++++++++++++++++ layouts/partials/head.html | 13 +- 2 files changed, 489 insertions(+), 6 deletions(-) create mode 100644 layouts/partials/css.html diff --git a/layouts/partials/css.html b/layouts/partials/css.html new file mode 100644 index 0000000..7cb1cff --- /dev/null +++ b/layouts/partials/css.html @@ -0,0 +1,482 @@ + \ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html index f5b38c1..6b8c46d 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -7,13 +7,14 @@ {{ .Site.Title }} {{ end }} +{{ partial "css.html" . }} {{ with .Site.Params.description }}{{ end }} - - - - - + + + + + {{ with .Site.Params.style }} @@ -30,7 +31,7 @@ ` | safeHTML }} - + {{ with .OutputFormats.Get "RSS" }} {{ printf `` .Permalink .Rel .MediaType.Type $.Site.Title | safeHTML }}