imfing / hextra

🔯 Modern, batteries-included Hugo theme for creating beautiful doc, blog and static websites
https://imfing.github.io/hextra/
MIT License
752 stars 177 forks source link

add Font #501

Open MahdiButcher opened 1 week ago

MahdiButcher commented 1 week ago

Feature Description

fonts for persian people

Problem/Solution

hey @imfing. the VazirMatn is a iconic font in Iran because the writer passed away in a tragedy. so choosing this font is very good decision. I think adding a choosing font inside the hugo.yaml is not a bad Idea instead of custom.css, and using a googlefontapi is very good, their cdn font is way better than local storage. a lots of sites around the world used google fonts . so please get this a go

Alternatives Considered

nothing

Additional Context

nothing

imfing commented 1 week ago

the font is available on google fonts so you can use it through the custom CSS

https://fonts.google.com/specimen/Vazirmatn

MahdiButcher commented 1 week ago

the font is available on google fonts so you can use it through the custom CSS

fonts.google.com/specimen/Vazirmatn

the problem is if i use .content, the footer and header doesn't apply the font. if i use * , i think it's dangerous? so what i'm done is I use .content and a to set the font and it worked. maybe a little docs over setting font is good?

MahdiButcher commented 1 week ago

it is in my repo https://github.com/MahdiButcher/mahdibutcher.github.io/blob/main/assets/css/custom.css

i didn't apply the language fonts , so there is a flaw. if you clearify the best way to add fonts, i will document it and add a new page to the document site

imfing commented 6 days ago

the font is available on google fonts so you can use it through the custom CSS

fonts.google.com/specimen/Vazirmatn

the problem is if i use .content, the footer and header doesn't apply the font. if i use * , i think it's dangerous? so what i'm done is I use .content and a to set the font and it worked. maybe a little docs over setting font is good?

use the body specifier

https://www.w3schools.com/css/css_font_google.asp

MahdiButcher commented 5 days ago

okay. I will make a document and pull it to doc