From eb466ded6e3851a08dfc563306151cb82890659f Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Thu, 20 Apr 2023 21:05:03 +0100 Subject: Minimize fonts by removing non-latin characters --- config.toml | 2 +- themes/ymherklotz/static/css/default.css | 24 ++++----------------- .../static/fonts/ttf/EBGaramond12-Italic.ttf | Bin 330352 -> 0 bytes .../static/fonts/ttf/EBGaramond12-Regular.ttf | Bin 498588 -> 0 bytes .../static/fonts/ttf/iosevka-ymhg-bold.ttf | Bin 5930340 -> 0 bytes .../static/fonts/ttf/iosevka-ymhg-bolditalic.ttf | Bin 6147160 -> 0 bytes .../static/fonts/ttf/iosevka-ymhg-medium.ttf | Bin 5908948 -> 0 bytes .../static/fonts/ttf/iosevka-ymhg-mediumitalic.ttf | Bin 6128548 -> 0 bytes .../static/fonts/woff/EBGaramond12-Italic.eot | Bin 133944 -> 0 bytes .../static/fonts/woff/EBGaramond12-Italic.woff | Bin 159468 -> 0 bytes .../static/fonts/woff/EBGaramond12-Regular.eot | Bin 197136 -> 0 bytes .../static/fonts/woff/EBGaramond12-Regular.woff | Bin 242364 -> 0 bytes .../static/fonts/woff2/iosevka-ymhg-bold.woff2 | Bin 905212 -> 49308 bytes .../fonts/woff2/iosevka-ymhg-bolditalic.woff2 | Bin 969020 -> 50652 bytes .../static/fonts/woff2/iosevka-ymhg-medium.woff2 | Bin 901536 -> 49368 bytes .../fonts/woff2/iosevka-ymhg-mediumitalic.woff2 | Bin 960920 -> 50672 bytes 16 files changed, 5 insertions(+), 21 deletions(-) delete mode 100644 themes/ymherklotz/static/fonts/ttf/EBGaramond12-Italic.ttf delete mode 100644 themes/ymherklotz/static/fonts/ttf/EBGaramond12-Regular.ttf delete mode 100644 themes/ymherklotz/static/fonts/ttf/iosevka-ymhg-bold.ttf delete mode 100644 themes/ymherklotz/static/fonts/ttf/iosevka-ymhg-bolditalic.ttf delete mode 100644 themes/ymherklotz/static/fonts/ttf/iosevka-ymhg-medium.ttf delete mode 100644 themes/ymherklotz/static/fonts/ttf/iosevka-ymhg-mediumitalic.ttf delete mode 100644 themes/ymherklotz/static/fonts/woff/EBGaramond12-Italic.eot delete mode 100644 themes/ymherklotz/static/fonts/woff/EBGaramond12-Italic.woff delete mode 100644 themes/ymherklotz/static/fonts/woff/EBGaramond12-Regular.eot delete mode 100644 themes/ymherklotz/static/fonts/woff/EBGaramond12-Regular.woff diff --git a/config.toml b/config.toml index fbbb0d8..609c60b 100644 --- a/config.toml +++ b/config.toml @@ -1,4 +1,4 @@ -baseURL = "https://yannherklotz.com" +baseURL = "https://bobby.ymhg.org" languageCode = "en-uk" title = "Yann Herklotz" theme = "ymherklotz" diff --git a/themes/ymherklotz/static/css/default.css b/themes/ymherklotz/static/css/default.css index 33217cb..c968d41 100644 --- a/themes/ymherklotz/static/css/default.css +++ b/themes/ymherklotz/static/css/default.css @@ -4,7 +4,7 @@ font-weight: 500; font-stretch: normal; font-style: normal; - src: url('/fonts/ttf/iosevka-ymhg-medium.ttf') format('truetype'), url('/fonts/woff2/iosevka-ymhg-medium.woff2') format('woff2'); + src: url('/fonts/woff2/iosevka-ymhg-medium.woff2') format('woff2'); } @font-face { @@ -13,7 +13,7 @@ font-weight: 500; font-stretch: normal; font-style: italic; - src: url('/fonts/ttf/iosevka-ymhg-mediumitalic.ttf') format('truetype'), url('/fonts/woff2/iosevka-ymhg-mediumitalic.woff2') format('woff2'); + src: url('/fonts/woff2/iosevka-ymhg-mediumitalic.woff2') format('woff2'); } @font-face { @@ -22,7 +22,7 @@ font-weight: 700; font-stretch: normal; font-style: normal; - src: url('/fonts/ttf/iosevka-ymhg-bold.ttf') format('truetype'), url('/fonts/woff2/iosevka-ymhg-bold.woff2') format('woff2'); + src: url('/fonts/woff2/iosevka-ymhg-bold.woff2') format('woff2'); } @font-face { @@ -31,25 +31,9 @@ font-weight: 700; font-stretch: normal; font-style: italic; - src: url('/fonts/ttf/iosevka-ymhg-bolditalic.ttf') format('truetype'), url('/fonts/woff2/iosevka-ymhg-bolditalic.woff2') format('woff2'); + src: url('/fonts/woff2/iosevka-ymhg-bolditalic.woff2') format('woff2'); } -/*@font-face { - font-family: 'EBGaramond'; - font-weight: 400; - font-style: normal; - font-display: swap; - src: url('/fonts/ttf/EBGaramond12-Regular.ttf') format('truetype'), url('/fonts/woff/EBGaramond12-Regular.woff') format('woff'); -} - -@font-face { - font-family: 'EBGaramond'; - font-weight: 400; - font-style: italic; - font-display: swap; - src: url('/fonts/ttf/EBGaramond12-Italic.ttf') format('truetype'), url('/fonts/woff/EBGaramond12-Italic.woff') format('woff'); -}*/ - body { background-color: #fffff8; color: #171d30; diff --git a/themes/ymherklotz/static/fonts/ttf/EBGaramond12-Italic.ttf b/themes/ymherklotz/static/fonts/ttf/EBGaramond12-Italic.ttf deleted file mode 100644 index c453410..0000000 Binary files a/themes/ymherklotz/static/fonts/ttf/EBGaramond12-Italic.ttf and /dev/null differ diff --git a/themes/ymherklotz/static/fonts/ttf/EBGaramond12-Regular.ttf b/themes/ymherklotz/static/fonts/ttf/EBGaramond12-Regular.ttf deleted file mode 100644 index d00050e..0000000 Binary files a/themes/ymherklotz/static/fonts/ttf/EBGaramond12-Regular.ttf and /dev/null differ diff --git a/themes/ymherklotz/static/fonts/ttf/iosevka-ymhg-bold.ttf b/themes/ymherklotz/static/fonts/ttf/iosevka-ymhg-bold.ttf deleted file mode 100644 index 983db99..0000000 Binary files a/themes/ymherklotz/static/fonts/ttf/iosevka-ymhg-bold.ttf and /dev/null differ diff --git a/themes/ymherklotz/static/fonts/ttf/iosevka-ymhg-bolditalic.ttf b/themes/ymherklotz/static/fonts/ttf/iosevka-ymhg-bolditalic.ttf deleted file mode 100644 index 2f6c691..0000000 Binary files a/themes/ymherklotz/static/fonts/ttf/iosevka-ymhg-bolditalic.ttf and /dev/null differ diff --git a/themes/ymherklotz/static/fonts/ttf/iosevka-ymhg-medium.ttf b/themes/ymherklotz/static/fonts/ttf/iosevka-ymhg-medium.ttf deleted file mode 100644 index ebd30da..0000000 Binary files a/themes/ymherklotz/static/fonts/ttf/iosevka-ymhg-medium.ttf and /dev/null differ diff --git a/themes/ymherklotz/static/fonts/ttf/iosevka-ymhg-mediumitalic.ttf b/themes/ymherklotz/static/fonts/ttf/iosevka-ymhg-mediumitalic.ttf deleted file mode 100644 index 9db414d..0000000 Binary files a/themes/ymherklotz/static/fonts/ttf/iosevka-ymhg-mediumitalic.ttf and /dev/null differ diff --git a/themes/ymherklotz/static/fonts/woff/EBGaramond12-Italic.eot b/themes/ymherklotz/static/fonts/woff/EBGaramond12-Italic.eot deleted file mode 100644 index f8cd662..0000000 Binary files a/themes/ymherklotz/static/fonts/woff/EBGaramond12-Italic.eot and /dev/null differ diff --git a/themes/ymherklotz/static/fonts/woff/EBGaramond12-Italic.woff b/themes/ymherklotz/static/fonts/woff/EBGaramond12-Italic.woff deleted file mode 100644 index 5082aa6..0000000 Binary files a/themes/ymherklotz/static/fonts/woff/EBGaramond12-Italic.woff and /dev/null differ diff --git a/themes/ymherklotz/static/fonts/woff/EBGaramond12-Regular.eot b/themes/ymherklotz/static/fonts/woff/EBGaramond12-Regular.eot deleted file mode 100644 index 5f0ef13..0000000 Binary files a/themes/ymherklotz/static/fonts/woff/EBGaramond12-Regular.eot and /dev/null differ diff --git a/themes/ymherklotz/static/fonts/woff/EBGaramond12-Regular.woff b/themes/ymherklotz/static/fonts/woff/EBGaramond12-Regular.woff deleted file mode 100644 index a4605d3..0000000 Binary files a/themes/ymherklotz/static/fonts/woff/EBGaramond12-Regular.woff and /dev/null differ diff --git a/themes/ymherklotz/static/fonts/woff2/iosevka-ymhg-bold.woff2 b/themes/ymherklotz/static/fonts/woff2/iosevka-ymhg-bold.woff2 index 202c615..e59d146 100644 Binary files a/themes/ymherklotz/static/fonts/woff2/iosevka-ymhg-bold.woff2 and b/themes/ymherklotz/static/fonts/woff2/iosevka-ymhg-bold.woff2 differ diff --git a/themes/ymherklotz/static/fonts/woff2/iosevka-ymhg-bolditalic.woff2 b/themes/ymherklotz/static/fonts/woff2/iosevka-ymhg-bolditalic.woff2 index 4c4eed9..566cabc 100644 Binary files a/themes/ymherklotz/static/fonts/woff2/iosevka-ymhg-bolditalic.woff2 and b/themes/ymherklotz/static/fonts/woff2/iosevka-ymhg-bolditalic.woff2 differ diff --git a/themes/ymherklotz/static/fonts/woff2/iosevka-ymhg-medium.woff2 b/themes/ymherklotz/static/fonts/woff2/iosevka-ymhg-medium.woff2 index 34136e7..89a308e 100644 Binary files a/themes/ymherklotz/static/fonts/woff2/iosevka-ymhg-medium.woff2 and b/themes/ymherklotz/static/fonts/woff2/iosevka-ymhg-medium.woff2 differ diff --git a/themes/ymherklotz/static/fonts/woff2/iosevka-ymhg-mediumitalic.woff2 b/themes/ymherklotz/static/fonts/woff2/iosevka-ymhg-mediumitalic.woff2 index 123b7ea..0b122e0 100644 Binary files a/themes/ymherklotz/static/fonts/woff2/iosevka-ymhg-mediumitalic.woff2 and b/themes/ymherklotz/static/fonts/woff2/iosevka-ymhg-mediumitalic.woff2 differ -- cgit