Skip to content

Commit

Permalink
fix: Fix font
Browse files Browse the repository at this point in the history
  • Loading branch information
Hayao0819 committed Jan 15, 2025
1 parent b989150 commit a872e46
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions layouts/partials/head/custom.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<style>
/* Overwrite CSS variable */
:root {
font-family: "Noto Sans JP", serif;
--article-font-family: "Noto Sans JP", serif;
--base-font-family: "Noto Sans JP", serif;
font-optical-sizing: auto;
font-style: normal;
}
</style>

<script>
;(function () {
const customFont = document.createElement("link")
customFont.href =
"https://fonts.googleapis.com/css2?family=Noto+Sans+JP:[email protected]&display=swap"

customFont.type = "text/css"
customFont.rel = "stylesheet"

document.head.appendChild(customFont)
})()
</script>

0 comments on commit a872e46

Please sign in to comment.