hugo-soresu

My fork of hugo-xmin

git clone git://git.shimmy1996.com/hugo-soresu.git
commit 65a4a2a1a2c51d5fa00700affbbdb19868315d8d
parent 77ccd4c76d20ea9855d78d8e464c864133505051
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Thu, 22 Nov 2018 10:23:58 -0500

Specify font-display option.

Diffstat:
Mlayouts/partials/css/fonts.css | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/layouts/partials/css/fonts.css b/layouts/partials/css/fonts.css
@@ -1,6 +1,7 @@
 @font-face {
     font-family: "Noto Sans SC Override";
     font-weight: 300;
+    font-display: swap;
     src: local("Noto Sans CJK SC"),
          url("/fonts/NotoSansSCOverride-Light.woff2") format("woff2");
     unicode-range: U+2018-2019, U+201C-201D;
@@ -9,6 +10,7 @@
 @font-face {
     font-family: "Noto Sans SC Override";
     font-weight: 400;
+    font-display: swap;
     src: local("Noto Sans CJK SC"),
          url("/fonts/NotoSansSCOverride-Regular.woff2") format("woff2");
     unicode-range: U+2018-2019, U+201C-201D;
@@ -17,6 +19,7 @@
 @font-face {
     font-family: "Noto Sans SC Override";
     font-weight: 500;
+    font-display: swap;
     src: local("Noto Sans CJK SC"),
          url("/fonts/NotoSansSCOverride-Medium.woff2") format("woff2");
     unicode-range: U+2018-2019, U+201C-201D;
@@ -25,6 +28,7 @@
 @font-face {
     font-family: "Oxygen";
     font-weight: 400;
+    font-display: swap;
     src: local("Oxygen Sans Book"),
          url("/fonts/Oxygen-Sans.woff2") format("woff2");
 }
@@ -32,6 +36,7 @@
 @font-face {
     font-family: "Oxygen";
     font-weight: 700;
+    font-display: swap;
     src: local("Oxygen Sans Bold"),
          url("/fonts/Oxygen-Sans-Bold.woff2") format("woff2");
 }
@@ -39,6 +44,7 @@
 @font-face {
     font-family: "Noto Sans SC";
     font-weight: 300;
+    font-display: swap;
     src: local("Noto Sans CJK SC Light"),
          url("/fonts/NotoSansSC-Light.woff2") format("woff2");
 }
@@ -46,6 +52,7 @@
 @font-face {
     font-family: "Noto Sans SC";
     font-weight: 400;
+    font-display: swap;
     src: local("Noto Sans CJK SC Regular"),
          url("/fonts/NotoSansSC-Regular.woff2") format("woff2");
 }
@@ -53,6 +60,7 @@
 @font-face {
     font-family: "Noto Sans SC";
     font-weight: 500;
+    font-display: swap;
     src: local("Noto Sans CJK SC Medium"),
          url("/fonts/NotoSansSC-Medium.woff2") format("woff2");
 }
@@ -60,6 +68,7 @@
 @font-face {
     font-family: "Iosevka Term";
     font-weight: 400;
+    font-display: swap;
     src: local("Iosevka Term"),
          url("/fonts/iosevka-term-ss09-regular.eascii.woff2") format("woff2");
 }