字体改为思源黑体

This commit is contained in:
JohnathanLin
2023-10-22 19:47:48 +08:00
parent 5bde584631
commit 4021954fc1
3 changed files with 25 additions and 1 deletions

23
layouts/partials/css.html Normal file
View 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>