Add Noto Sans font to article styling

Includes Noto Sans from Google Fonts and sets it as the article font family via CSS variable. This improves typography consistency for articles.
This commit is contained in:
tiennm99 committed 2025-09-30 00:01:00 +07:00
1 parent c80d5a6c97
commit 54c4f893d9
1 file changed
+18
+18
View File
@@ -1,3 +1,21 @@
<style>
/* Overwrite CSS variable */
:root {
--article-font-family: "Noto Sans", var(--base-font-family);
}
</style>
<script>
(function () {
const customFont = document.createElement('link');
customFont.href = "https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap";
customFont.type = "text/css";
customFont.rel = "stylesheet";
document.head.appendChild(customFont);
}());
</script>
<script type="text/javascript"> <script type="text/javascript">
(function(c,l,a,r,i,t,y){ (function(c,l,a,r,i,t,y){
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)}; c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};