From 836a649bb467deba3cae53aba5f1ea679cbe41c4 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Tue, 22 Nov 2022 20:01:58 +0200 Subject: [general] Made general changes to improve loading efficiency --- generate-hooks/create-header-anchors.awk | 2 +- src/_footer.html | 7 ++++--- src/_header.html | 5 ++--- src/styles.css | 7 +++++++ 4 files changed, 14 insertions(+), 7 deletions(-) diff --git a/generate-hooks/create-header-anchors.awk b/generate-hooks/create-header-anchors.awk index 5381e81..a07c736 100644 --- a/generate-hooks/create-header-anchors.awk +++ b/generate-hooks/create-header-anchors.awk @@ -8,7 +8,7 @@ /[ \t]*\"🔗\"") + gsub(/$/, ORS "\"🔗\"") } { diff --git a/src/_footer.html b/src/_footer.html index b9cbb3a..9b59a9c 100644 --- a/src/_footer.html +++ b/src/_footer.html @@ -1,9 +1,10 @@ ^ - - - + + + + diff --git a/src/_header.html b/src/_header.html index 1060d32..2554bfc 100644 --- a/src/_header.html +++ b/src/_header.html @@ -28,7 +28,7 @@ Home Expand navbar - + Content @@ -53,7 +53,6 @@
Toggle theme Toggle full width -
@@ -77,4 +76,4 @@
- + diff --git a/src/styles.css b/src/styles.css index 6f55703..573a04a 100644 --- a/src/styles.css +++ b/src/styles.css @@ -634,12 +634,14 @@ dd code { font-family: 'Open Sans'; src: url(/fonts/open-sans/OpenSans-Bold.ttf); font-weight: bold; + font-display: swap; } @font-face { font-family: 'Open Sans'; src: url(/fonts/open-sans/OpenSans-ExtraBold.ttf); font-weight: 800; + font-display: swap; } @font-face { @@ -647,6 +649,7 @@ dd code { src: url(/fonts/open-sans/OpenSans-Italic.ttf); font-weight: normal; font-style: italic; + font-display: swap; } @font-face { @@ -654,6 +657,7 @@ dd code { src: url(/fonts/open-sans/OpenSans-BoldItalic.ttf); font-weight: bold; font-style: italic; + font-display: swap; } @font-face { @@ -661,12 +665,14 @@ dd code { src: url(/fonts/open-sans/OpenSans-ExtraBoldItalic.ttf); font-weight: 800; font-style: italic; + font-display: swap; } @font-face { font-family: 'Open Sans'; src: url(/fonts/open-sans/OpenSans-Semibold.ttf); font-weight: 600; + font-display: swap; } @font-face { @@ -674,4 +680,5 @@ dd code { src: url(/fonts/open-sans/OpenSans-SemiboldItalic.ttf); font-weight: 600; font-style: italic; + font-display: swap; } -- cgit v1.3.1-26-gb76a