mirror of
https://github.com/tiennm99/blog.git
synced 2026-10-14 02:15:41 +00:00
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:
1 parent
1bd68b63e2
commit
12adfdc67b
1 file changed
+18
@@ -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">
|
||||
(function(c,l,a,r,i,t,y){
|
||||
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
|
||||
|
||||
Reference in new issue
Block a user