Skip to content

Commit 87c4804

Browse files
committed
Add light weight font
1 parent 187a3ee commit 87c4804

22 files changed

+4404
-5314
lines changed

_layouts/post.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
<main class="main-container">
1414
<article data-pagefind-body class="mdc-card content-card">
1515
{% include script-content-card.html %}
16-
<h1 data-pagefind-meta="title" class="essay-title">{{ page.title }}</h1>
17-
<address class="essay-author">
16+
<h1 data-pagefind-meta="title" class="post-title">{{ page.title }}</h1>
17+
<address class="post-author">
1818
{% if page.moreDate != null %}{{ page.moreDate }} {% endif %}{{ page.author}}
1919
</address>
20-
<time data-pagefind-meta="date" class="essay-date" datetime="{{ page.date | date: " %Y-%m-%d" }}">
20+
<time data-pagefind-meta="date" class="post-date" datetime="{{ page.date | date: " %Y-%m-%d" }}">
2121
{{ page.date | date: "%Y年%m月%d日" }}
2222
</time>
2323

@@ -26,7 +26,7 @@ <h1 data-pagefind-meta="title" class="essay-title">{{ page.title }}</h1>
2626
<!-- 如果用span创建mdc-button,则点击动画结束后才会触发点击事件,感觉明显会很慢 -->
2727
{%- for tagInPage in page.tags %}
2828
<button type="button" class="mdc-button tag-dialog-trigger btn-tag" id="chip_tag_{{ tagInPage }}">
29-
<span class="mdc-button__label">#{{ tagInPage }}</span>
29+
<span class="mdc-button__label">{{ tagInPage }}</span>
3030
</button>
3131
{%- endfor %}
3232
</section>

_posts/original/2022-05-17-不必复杂,静态博客也可以做短链.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -145,35 +145,35 @@ fun selfIncreaseBase62(baseStr: String): String {
145145
{
146146
"id": "op00",
147147
"target": {
148-
"path": "/post/opera/essay_00.html",
148+
"path": "/post/opera/post_00.html",
149149
"title": "title_00"
150150
}
151151
},
152152
{
153153
"id": "op01",
154154
"target": {
155-
"path": "/post/opera/essay_01.html",
155+
"path": "/post/opera/post_01.html",
156156
"title": "title_01"
157157
}
158158
},
159159
{
160160
"id": "og00",
161161
"target": {
162-
"path": "/post/original/essay_00.html",
162+
"path": "/post/original/post_00.html",
163163
"title": "title_00"
164164
}
165165
},
166166
{
167167
"id": "og01",
168168
"target": {
169-
"path": "/post/original/essay_01.html",
169+
"path": "/post/original/post_01.html",
170170
"title": "title_01"
171171
}
172172
},
173173
{
174174
"id": "rp00",
175175
"target": {
176-
"path": "/post/repost/essay_00.html",
176+
"path": "/post/repost/post_00.html",
177177
"title": "title_00"
178178
}
179179
}

_posts/original/2023-01-12-2023年,我换了新域名「牡丹」.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ mention: Cloudflare 重定向 博客
77
date: 2023-01-12 +0800
88
description: “牡丹”是一个对我而言十分特殊的词,源于昆曲《牡丹亭》的影响。它相比抽象中二的“apqx”更有纪念意义,纪念我的整个前青春时代,纪念我从北方到南方的迁徙,纪念我的世界从灰暗向多彩的渐变。
99
cover: https://apqx.oss-cn-hangzhou.aliyuncs.com/blog/original/20230112/IMG_4572_thumb.jpg
10-
tags: 碎碎念 Code Blog 域名 Cloudflare GitHub DNS URL重定向
10+
tags: 碎碎念 Code Blog 域名 GitHub Cloudflare DNS URL重定向
1111
pin: true
1212
---
1313

_posts/original/2023-12-04-完成博客Rebase,拥抱开源.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ tags: Code Blog Git GitHub 开源
3333
reword 6275e82 My Blog
3434
# Create CNAME to use custom domain
3535
pick 69802dc Create CNAME
36-
# Upload essays
36+
# Upload posts
3737
pick 1328b29 My Blog
3838
squash 0603d9a 更新
3939
squash cc7f0aa 更新

npm/dist/blog-429-v2.0.0.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

npm/dist/blog-font-v2.0.0.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

npm/dist/blog-post-v2.0.0.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

npm/dist/blog-scaffold-v2.0.0.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

npm/dist/blog-scaffold-v2.0.0.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

npm/src/component/dialog/AboutMeDialog.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class LinkItem extends React.Component<LinkItemProps, any> {
7979
render() {
8080
return (
8181
<li>
82-
<a className="mdc-deprecated-list-item mdc-deprecated-list-item__darken" href={this.props.link} target="_blank">
82+
<a className="mdc-deprecated-list-item mdc-deprecated-list-item__darken" href={this.props.link} target="_blank" tabIndex={-1}>
8383
<span className="mdc-deprecated-list-item__text link-item">{this.props.title}</span>
8484
</a>
8585
{!this.props.last && <hr className="mdc-deprecated-list-divider" />}

npm/src/component/drawer.scss

+4
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@
4242
font-weight: normal;
4343
}
4444

45+
.mdc-drawer__subtitle {
46+
font-weight: normal;
47+
}
48+
4549
.mdc-drawer__content .mdc-deprecated-list-item--activated .mdc-deprecated-list-item__text {
4650
font-weight: normal
4751
}

npm/src/component/font/_LXGWWenKaiGBLiteLight.scss

+1,145
Large diffs are not rendered by default.

npm/src/component/font/_LXGWWenKaiGBLiteMedium.scss

+1,083
Large diffs are not rendered by default.

npm/src/component/font/_LXGWWenKaiGBLiteRegular.scss

+1,063
Large diffs are not rendered by default.

npm/src/component/font/_LXGWWenKaiGBMedium.scss

-1,758
This file was deleted.

npm/src/component/font/_LXGWWenKaiGBRegular.scss

-1,765
This file was deleted.

npm/src/component/font/_LXGWWenKaiMonoGBLiteRegular.scss

+1,081
Large diffs are not rendered by default.

npm/src/component/font/_LXGWWenKaiMonoGBRegular.scss

-1,765
This file was deleted.

npm/src/component/font/font.scss

+6-5
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,18 @@
44
// 苹方的 Horizontal Ellipsis 字符,即…省略号,因为霞鹜文楷的省略号竖向居中,不合适,用苹方的替代
55
@use "PingFangSCEllipsis";
66
// 霞鹜文楷
7-
@use "LXGWWenKaiGBRegular";
8-
@use "LXGWWenKaiGBMedium";
7+
@use "LXGWWenKaiGBLiteLight";
8+
@use "LXGWWenKaiGBLiteRegular";
9+
@use "LXGWWenKaiGBLiteMedium";
910
// 一款英文字体
1011
@use "LibreBaskerville";
1112
// Material Icons
1213
@use "MaterialSymbols";
1314

1415
// @font-face {
15-
// font-family: "test";
16-
// src: url("https://apqx-host.oss-cn-hangzhou.aliyuncs.com/blog/fonts/IBMPlexSansSC-Medium.woff2") format('woff2');
16+
// font-family: "LXGW WenKai GB";
17+
// src: url("https://apqx-host.oss-cn-hangzhou.aliyuncs.com/blog/fonts/LXGWWenKaiGBLite/v1.501/LXGWWenKaiGBLite-Light.ttf") format('woff2');
1718
// font-style: normal;
18-
// font-weight: 500;
19+
// font-weight: 400;
1920
// font-display: swap;
2021
// }

npm/src/component/font/fontCode.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// 霞鹭文楷等宽
2-
@use "LXGWWenKaiMonoGBRegular";
2+
@use "LXGWWenKaiMonoGBLiteRegular";

npm/src/component/list.scss

+1
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,6 @@
7474
@include typography.typography(body1);
7575
color: var(--list-secondary-ink);
7676
font-size: calc(var(--mdc-typography-body1-font-size) - 0.1rem);
77+
font-weight: 300;
7778
text-align: left;
7879
}

npm/src/page/post.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
@use "@material/typography";
77

88
/* 文章题目 */
9-
.essay-title {
9+
.post-title {
1010
font-size: calc(var(--mdc-typography-body1-font-size) + 0.8rem);
1111
line-height: 2.5rem;
1212
margin: 1rem 2rem;
@@ -15,7 +15,7 @@
1515
}
1616

1717
/* 文章署名 */
18-
.essay-author {
18+
.post-author {
1919
@include typography.typography(subtitle1);
2020
@include theme.property(color, text-secondary-on-background);
2121
font-size: calc(var(--mdc-typography-body1-font-size) - 0.1rem);
@@ -24,7 +24,7 @@
2424
}
2525

2626
/* 文章日期 */
27-
.essay-date {
27+
.post-date {
2828
@include typography.typography(subtitle1);
2929
@include theme.property(color, text-secondary-on-background);
3030
font-size: calc(var(--mdc-typography-body1-font-size) - 0.1rem);

0 commit comments

Comments
 (0)