hugo-soresu

My fork of hugo-xmin

git clone git://git.shimmy1996.com/hugo-soresu.git
commit e98ffee2be26daf61313e452c25a43b04cbaebd2
parent 83b0624ec75bd01ddd248371e7fe701c3485fa12
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Sun, 21 Jan 2018 03:29:40 -0600

Host Noto Sans JP Min locally and use Noto Sans SC Sliced.

Diffstat:
Mstatic/css/fonts.css | 20+++++++++++++++-----
Mstatic/css/style.css | 6+++---
Astatic/fonts/NotoSansCJKjp-Bold.min.woff2 | 0
Astatic/fonts/NotoSansCJKjp-Regular.min.woff2 | 0
4 files changed, 18 insertions(+), 8 deletions(-)
diff --git a/static/css/fonts.css b/static/css/fonts.css
@@ -1,5 +1,4 @@
-@import url(//fonts.googleapis.com/earlyaccess/notosanssc.css);
-@import url(//fonts.googleapis.com/earlyaccess/notosansjp.css);
+@import url(//fonts.googleapis.com/earlyaccess/notosansscsliced.css);
 
 @font-face{
     font-family: "Iosevka";
@@ -36,11 +35,22 @@
     font-weight: bold;
 }
 
+@font-face{
+    font-family: "Noto Sans JP Min";
+    src: url("/fonts/NotoSansCJKjp-Regular.min.woff2") format('woff2');
+}
+
+@font-face{
+    font-family: "Noto Sans JP Min";
+    src: url("/fonts/NotoSansCJKjp-Bold.min.woff2") format('woff2');
+    font-weight: bold;
+}
+
 body {
-    font-family: 'Oxygen', 'Noto Sans SC', 'Noto Sans JP', Optima, Candara, Calibri, Arial, sans-serif;
+    font-family: 'Oxygen', 'Noto Sans SC Sliced', 'Noto Sans JP Min', Candara, Calibri, Arial, sans-serif;
 }
 
 code {
-  font-family: 'Iosevka', 'Lucida Console', Monaco, monospace;
-  font-size: 85%;
+  font-family: 'Iosevka', monospace;
+  font-size: 90%;
 }
diff --git a/static/css/style.css b/static/css/style.css
@@ -9,6 +9,7 @@ body {
 .menu { padding: 0; }
 .menu li { display: inline-block; }
 .article-meta, .menu a {
+  line-height: 2.4em;
   text-decoration: none;
   background: #eee;
   padding: 5px;
@@ -50,7 +51,7 @@ table thead th { border-bottom: 1px solid #ddd; }
 th, td { padding: 5px; }
 thead, tfoot, tr:nth-child(even) { background: #eee }
 
-a { 
+a {
   text-decoration:none;
   color: #700000;
-}-
\ No newline at end of file
+}
diff --git a/static/fonts/NotoSansCJKjp-Bold.min.woff2 b/static/fonts/NotoSansCJKjp-Bold.min.woff2
Binary files differ.
diff --git a/static/fonts/NotoSansCJKjp-Regular.min.woff2 b/static/fonts/NotoSansCJKjp-Regular.min.woff2
Binary files differ.