Skip to content

Commit

Permalink
排版:調整字型
Browse files Browse the repository at this point in the history
  • Loading branch information
yixiuer committed Oct 26, 2024
1 parent fc6475d commit 43065f1
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 45 deletions.
60 changes: 29 additions & 31 deletions assets/scss/custom/_custom.scss
Original file line number Diff line number Diff line change
@@ -1,58 +1,47 @@
// /~https://github.com/ichitenfont/I.Ming
@font-face {
font-family: 'I.MingCP';
font-display: swap;
src: url('#{$baseRelURL}/fonts/I.MingCP-8.10.woff2') format('woff2');
font-weight: 400;
font-style: normal;
}

.home {
font-family: 'Noto Serif TC', serif;
.avatar {
transition: none; // Disable rotate transform temporarily due to unkonwn brightness bug in Chromium (Yes not in Safari)
}
.motto {
font-family: 'Zen Maru Gothic', sans-serif;
font-family: 'LXGW WenKai TC', cursive;
}
.description {
font-family: 'I.MingCP', serif;
}
.keywords {
font-family: 'Klee One', cursive;
font-family: 'LXGW WenKai TC', cursive;
}
.links {
font-variant: small-caps;
}
}

sup {
font-family: 'glyph-correction', 'Source Code Pro', 'Noto Serif TC', 'Noto Serif SC', monospace;
}

h1, h2, h3, h4, h5, h6, th, dt {
font-weight: normal;
font-family: 'glyph-correction', 'Source Code Pro', monospace;
}

[data-type="poetry"], [data-type="aphorism"] {
.post-body {
p {
font-family: 'glyph-correction', 'Long Cang', 'Noto Serif TC', 'Noto Serif SC', 'EB Garamond', serif;
font-size: 125%;
}
font-family: 'LXGW WenKai TC', cursive;
font-size: 125%;

sup {
font-size: 50%;
}
}
.caption {
font-size: 75%;
}
}

article:lang(hant) {
.post-title {
font-family: 'Yuji Mai', 'Noto Serif TC', serif;
}

.post-body p {
--line-height: 1.618;

line-height: var(--line-height) !important;
font-family: 'Klee One', 'Noto Serif TC', serif !important;
}
}

[data-type="about"] {
.post-title {
font-family: 'Yuji Mai', 'Noto Serif TC', serif;
margin: -2em 0 0;
}
}

Expand All @@ -61,7 +50,7 @@ article:lang(hant) {
margin: 0 -3em;
}
.tag-cloud-item {
font-family: 'glyph-correction', 'Long Cang', 'Noto Serif TC', 'Noto Serif SC', serif;
font-family: 'LXGW WenKai TC', cursive;
}

body, .back-to-top, ::-webkit-scrollbar-track {
Expand All @@ -71,6 +60,15 @@ body, .back-to-top, ::-webkit-scrollbar-track {
border-color: #eceff1;
}

.list-year {
font-weight: normal;
}
[data-type="about"] {
.post-title {
font-weight: 500;
}
}

.main {
padding-top: 5em;
}
Expand Down
22 changes: 11 additions & 11 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,7 @@ uglyURLs = false
enableCaption = true

# 說明文字的字首
captionPrefix = " "
captionPrefix = " "


######################################
Expand Down Expand Up @@ -1047,26 +1047,26 @@ uglyURLs = false
# 品牌欄
fontFamilySiteBrand = ""
# 選單欄
fontFamilyMenu = "'Noto Serif TC', 'Noto Serif SC', serif"
fontFamilyMenu = "'Noto Serif TC', serif"
# 文章標題、文章副標題、列表標題、列表的年份和月份標題、相關文章標題、文章上下篇標題、表格的表頭、定義列表中的術語
fontFamilyTitle = "'ZCOOL XiaoWei', 'Noto Serif TC', 'Noto Serif SC', 'EB Garamond', serif"
fontFamilyTitle = "'Noto Serif TC', 'Noto Serif SC', serif"
# 分節標題、目錄標題
fontFamilyHeadings = "'Ma Shan Zheng', 'Noto Serif TC', 'Noto Serif SC', 'EB Garamond', serif"
fontFamilyHeadings = "'Noto Serif TC', 'Noto Serif SC', serif"
# 程式碼、上標、文章元資訊、文章更新徽章、文章的 Git 版本資訊、極簡頁尾、不蒜子站點瀏覽計數
fontFamilyCode = "'EB Garamond', 'STKaiti', 'Noto Serif TC', 'Noto Serif SC', serif"
fontFamilyCode = "'EB Garamond', 'LXGW WenKai TC', cursive"
# 引用
fontFamilyQuote = "'EB Garamond', 'STFangsong', 'Noto Serif TC', 'Noto Serif SC', serif"
fontFamilyQuote = "'EB Garamond', 'LXGW WenKai TC', cursive"
# 文章目錄
fontFamilyTOC = "'EB Garamond', 'STKaiti', 'Noto Serif TC', 'Noto Serif SC', serif"
fontFamilyTOC = "'EB Garamond', 'LXGW WenKai TC', cursive"
# 說明文字
fontFamilyCaption = "'EB Garamond', 'STKaiti', 'Noto Serif TC', 'Noto Serif SC', serif"
fontFamilyCaption = "'EB Garamond', 'LXGW WenKai TC', cursive"
# 頁尾
fontFamilyFooter = "'EB Garamond', 'Klee One', 'Noto Serif SC', cursive"
fontFamilyFooter = "'EB Garamond', 'LXGW WenKai TC', 'Noto Serif SC', cursive"
# 主體
fontFamilyBody = "'EB Garamond', 'Noto Serif TC', 'Noto Serif SC', serif"
fontFamilyBody = "'EB Garamond', 'I.MingCP', serif"

# 網路字型連結
fontsLink = "https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,700;1,400;1,700&family=Noto+Serif+TC:wght@400;500;700&family=Noto+Serif+SC:wght@400;500;700&family=ZCOOL+XiaoWei&family=Ma+Shan+Zheng&family=Long+Cang&family=Klee+One&family=Yuji+Mai&family=Zen+Maru+Gothic&display=swap"
fontsLink = "https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,700;1,400;1,700&family=Noto+Serif+TC:wght@400;500;700&family=Noto+Serif+SC:wght@700&family=LXGW+WenKai+TC:wght@300&display=swap"
# 說明:要想讀者一定體驗到你設定的字型,最好
# 採用網路字型。MemE 主題目前僅支援
# Google Fonts 的連結,請前往
Expand Down
1 change: 0 additions & 1 deletion content/poetry/回望.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ title = "回望"
date = "2024-09-08T17:09:00+09:00"
tags = ["", "目标"]
slug = "retrospection"
languageCode = "hant"
+++

你應該這麼做
Expand Down
1 change: 0 additions & 1 deletion content/poetry/煙火龍鳴.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ title = "煙火龍鳴"
date = "2024-02-10T01:35:54+09:00"
tags = ["", "星空"]
slug = "fireworks-roaring"
languageCode = "hant"
+++

火花即興飛舞
Expand Down
1 change: 0 additions & 1 deletion content/poetry/鵲橋.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ title = "鵲橋"
date = "2023-12-20T02:07:23+09:00"
tags = ["", "星空", "生命"]
slug = "magpie-bridge"
languageCode = "hant"
+++

快看!那是一顆超新星!
Expand Down
Binary file added static/fonts/I.MingCP-8.10.woff2
Binary file not shown.

0 comments on commit 43065f1

Please sign in to comment.