PaperMod自定义字体
1 . 在 layouts/partials/extend_head.html 中引入 CDN 1 2 3 <!-- 霞鹜字体 --> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/lxgw-wenkai-screen-web/style.css" /> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@callmebill/lxgw-wenkai-web@latest/style.css" /> 2 . 在 assets/css/extended/custome.css 中添加字体样式: 1 2 3 4 5 6 7 8 9 10 /* 正文字体 */ .post-content { font-family: LXGW WenKai Light, LXGW WenKai Screen, sans-serif; } body { font-size: 18px; line-height: 1.6; font-family: LXGW WenKai Light, LXGW WenKai Screen, sans-serif; } 3 . 在 assets/css/extended/admonition.css 处修改 admonition 注释框中的字体。 1 2 3 4 5 /* admonition注释框字体 */ body, .admonition { font-family: LXGW WenKai Light, LXGW WenKai Screen, sans-serif; }