字体改为思源黑体
This commit is contained in:
parent
5bde584631
commit
4021954fc1
@ -22,7 +22,7 @@ h6 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
font-family: 'Noto Serif SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
<html lang="{{ site.Language }}" dir="{{ .Language.LanguageDirection | default "auto" }}">
|
<html lang="{{ site.Language }}" dir="{{ .Language.LanguageDirection | default "auto" }}">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
|
{{- partial "css.html" . }}
|
||||||
{{- partial "head.html" . }}
|
{{- partial "head.html" . }}
|
||||||
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
|
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
23
layouts/partials/css.html
Normal file
23
layouts/partials/css.html
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
<style>
|
||||||
|
:root {
|
||||||
|
--sys-font-family: "Noto Serif SC";
|
||||||
|
--zh-font-family: "Noto Serif SC";
|
||||||
|
--base-font-family: "Noto Serif SC";
|
||||||
|
--code-font-family: "Noto Serif SC";
|
||||||
|
--article-font-family: "Noto Serif SC";
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
(function () {
|
||||||
|
const customFont = document.createElement("link");
|
||||||
|
customFont.href =
|
||||||
|
"https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;700&display=swap";
|
||||||
|
|
||||||
|
customFont.type = "text/css";
|
||||||
|
customFont.rel = "stylesheet";
|
||||||
|
|
||||||
|
document.head.appendChild(customFont);
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user