diff --git a/theme/blog/statics/plugins/highlight/prism.css b/theme/blog/statics/plugins/highlight/prism.css index c52d8d17..cdfbad93 100644 --- a/theme/blog/statics/plugins/highlight/prism.css +++ b/theme/blog/statics/plugins/highlight/prism.css @@ -8,7 +8,7 @@ pre[class*="language-"] { color: #777; background: none; - font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; + font-family: var(--mono-font), Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; text-align: left; white-space: pre; word-spacing: normal; diff --git a/theme/blog/styles/content.scss b/theme/blog/styles/content.scss index 3491fbde..862683e5 100644 --- a/theme/blog/styles/content.scss +++ b/theme/blog/styles/content.scss @@ -44,7 +44,7 @@ } } .meta1 { - margin-top: -1.8em; + margin-top: -1.5em; opacity: 0.5; } .meta2 { diff --git a/theme/blog/styles/global.scss b/theme/blog/styles/global.scss index f2e70a87..d401bce3 100644 --- a/theme/blog/styles/global.scss +++ b/theme/blog/styles/global.scss @@ -11,6 +11,8 @@ body { font: var(--font-size) "Trebuchet MS","Microsoft YaHei",'Noto Sans',sans-serif { } + font-family: "LXGW WenKai"; + font-weight: normal; } @media screen and (max-width: $max_width) { diff --git a/theme/blog/styles/variables.scss b/theme/blog/styles/variables.scss index 7dfd129c..8758c4ba 100644 --- a/theme/blog/styles/variables.scss +++ b/theme/blog/styles/variables.scss @@ -1,6 +1,6 @@ :root { ---font-size: 15px; ---mono-font: Monaco, Consolas, monospace, Courier; +--font-size: 18px; +--mono-font: "LXGW WenKai Mono", Monaco, Consolas, monospace, Courier; --max-width: 850px; --border-color-hover: #e18500; --border-radius: 4px; diff --git a/theme/blog/templates/_header.html b/theme/blog/templates/_header.html index 63682951..a444637b 100644 --- a/theme/blog/templates/_header.html +++ b/theme/blog/templates/_header.html @@ -11,6 +11,7 @@ {{- end -}} {{- get_config "blog_name" -}} +