Skip to content

Commit c353633

Browse files
committed
Updated
1 parent 3ff471d commit c353633

2 files changed

Lines changed: 21 additions & 2 deletions

File tree

assets/css/extended/custom.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/* 针对手机屏幕调整基础字号 */
2+
@media (max-width: 768px) {
3+
html {
4+
font-size: 14px; /* 默认是 16px 或 18px,你可以按喜好调整 */
5+
}
6+
/* 可选:让标题也相应小一点 */
7+
.post-title {
8+
font-size: 1.6rem;
9+
}
10+
}
11+
12+
/* 让块级公式容器可滚动 */
13+
.katex-display {
14+
overflow-x: auto;
15+
overflow-y: hidden;
16+
padding-bottom: 4px; /* 留一点空间给滚动条 */
17+
}

hugo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ enableRobotsTXT = true
1515

1616
hasCJKLanguage = true
1717

18+
# 使用 CSS classes 来渲染高亮,而不是内联样式
19+
pygmentsUseClasses = true
20+
1821
[params]
1922
# 网站描述,会显示在 HTML meta 标签中
2023
description = "Ivy_C 的笔记"
@@ -99,8 +102,7 @@ weight = 15
99102
[outputs]
100103
home = ["HTML", "RSS", "JSON"]
101104

102-
# 使用 CSS classes 来渲染高亮,而不是内联样式
103-
pygmentsUseClasses = true
105+
104106

105107
# (可选) 防止代码行号被选中
106108
[markup.highlight]

0 commit comments

Comments
 (0)