mirror of
https://github.com/tiennm99/blog.git
synced 2026-10-11 03:13:10 +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
c80d5a6c97
commit
54c4f893d9
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">
|
<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)};
|
||||||
|
|||||||
Reference in new issue
Block a user