hugo-theme-stack/layouts/partials/head/custom.html
2023-11-04 03:53:24 +08:00

33 lines
909 B
HTML

<style>
:root {
--sys-font-family: "LXGW WenKai Screen R";
--zh-font-family: "LXGW WenKai Screen R";
--base-font-family: "LXGW WenKai Screen R";
--code-font-family: "LXGW WenKai Screen R";
--article-font-family: "Noto Serif SC";
}
</style>
<script>
(function () {
const customFont = document.createElement("link");
customFont.href =
"https://cdnjs.cloudflare.com/ajax/libs/lxgw-wenkai-screen-webfont/1.7.0/lxgwwenkaiscreenr.css";
customFont.type = "text/css";
customFont.rel = "stylesheet";
document.head.appendChild(customFont);
})();
(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>