feat: use web font

pull/29/head
Coelacanthus 2021-05-10 14:13:58 +08:00
parent e6eae31c93
commit 58bd2ff46e
No known key found for this signature in database
GPG Key ID: 1F62B42D0D2AE4B6
4 changed files with 47 additions and 1 deletions

View File

@ -0,0 +1,42 @@
@import "../themes/theme";
$text-font-stack: 'Muli',
Georgia,
-apple-system,
'Noto Sans',
'Noto Sans CJK SC',
'PingFang SC',
'Hiragino Sans GB',
'Microsoft Yahei',
'ST Heiti',
sans-serif !default;
$code-font-stack: Consolas,
Monaco,
Menlo,
"DejaVu Sans Mono",
"Bitstream Vera Sans Mono",
"Courier New",
"Lucida Console",
"Lucida Sans Typewriter",
"Liberation Mono",
"Nimbus Mono L",
Monaco,
Courier,
monospace !default;
$z-indexes: ("drawer", "modal", "dropdown", "navbar", "header", "gtt", "clipboard", "grid", "search-btn", "search", "menu", "content", "landing", "footer", "taxo", "toc", "gallery-mask", "section-title", "highlight");
$breakpoints: (
'xs': 0,
'sm': 600px,
'md': 960px,
'lg': 1280px,
'xl': 1960px,
);
$grid-max-width: 1289px;
$grid-nav-height: 50px;
$grid-body-width: 769px;
$grid-side-width: 240px;
$drawer-width: 240px;
$menu-title-height: 30px;

View File

@ -22,6 +22,8 @@ enableNavbar = true
enableFooter = true
showPoweredBy = true
fontsLink = "https://fonts.googleapis.com/css2?family=Noto+Sans+SC&family=Noto+Sans&display=swap"
tocLevels = ["h2", "h3", "h4"]
paginateWindow = 1
taxoPaginate = 13

2
data/font.toml 100644
View File

@ -0,0 +1,2 @@
title_font = "\"Montserrat\", Georgia, -apple-system, \"Noto Sans\", \"Noto Sans CJK SC\", \"PingFang SC\", \"Hiragino Sans GB\", \"Microsoft Yahei\", \"ST Heiti\", sans-serif"
content_font = "\"muli\", Georgia, -apple-system, \"Noto Sans\", \"Noto Sans CJK SC\", \"PingFang SC\", \"Hiragino Sans GB\", \"Microsoft Yahei\", \"ST Heiti\", sans-serif"

@ -1 +1 @@
Subproject commit aade84fe43ace51f792f40365740a77d87abe68e
Subproject commit 174e0e6f2b747102872afd2e2a91e85b581f2f13