File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ enableRobotsTXT = true
1515
1616hasCJKLanguage = 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 ]
You can’t perform that action at this time.
0 commit comments