LouisBarranqueiro / hexo-theme-tranquilpeak

:lipstick: A gorgeous responsive theme for Hexo blog framework
https://louisbarranqueiro.github.io/hexo-theme-tranquilpeak/
GNU General Public License v3.0
1.86k stars 484 forks source link

how to edit the font style of the posts #16

Closed kaedea closed 9 years ago

kaedea commented 9 years ago

Hi, Louis, thanks for your great job. I had looked for hundreds of themes and find that yours is the best. And now I would like to change the font style of the posts because the default style is not good for chinese characters. Please offer a way.

LouisBarranqueiro commented 9 years ago

Thank you! :) What do you mean by "offer a way" ? Do you mean : easily in _config.yml? or you want to know which css file you need to edit?

To modify the font of post content : you have to edit tranquilpeak/source/_css/components/_post.scss and replace font-family: 'Merriweather', serif; with your font. To do things properly, if your font is a custom font, you have to import it in tranquilpeak/source/_css/utils/_fonts.scss. I recommend you to use google font to import it or you can add local fonts in tranquil peak/source/_fonts.
Don't forget to build the theme after changes. For more information, read developer documentation Build part

kaedea commented 9 years ago

Thanks Louis. "offer a way" means I want to edit the css (I am not a frontia developer therefore your answer is the fast way for me to edit).

LouisBarranqueiro commented 9 years ago

your welcome :)