mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-28 19:43:31 +08:00
42 lines
1.3 KiB
HTML
42 lines
1.3 KiB
HTML
<style>
|
|
:root {
|
|
--sys-font-family: "EB Garamond";
|
|
--zh-font-family: "LXGW WenKai Screen R";
|
|
--base-font-family: "EB Garamond", "LXGW WenKai Screen R";
|
|
--article-font-family: "LXGW WenKai Screen R";
|
|
}
|
|
</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;500;600;700&family=Source+Code+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=Cinzel+Decorative:wght@700&display=swap";
|
|
|
|
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=EB+Garamond:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap";
|
|
|
|
customFont.type = "text/css";
|
|
customFont.rel = "stylesheet";
|
|
|
|
document.head.appendChild(customFont);
|
|
})();
|
|
</script>
|