zhaohuabing / hugo-theme-cleanwhite

A clean, elegant blog theme for hugo
Apache License 2.0
730 stars 339 forks source link

How to change #69

Closed EMTincopa closed 4 years ago

EMTincopa commented 4 years ago

Hi! I want to change standard font of all pages. How? Is there an easy option adding something as a sitewide param in config.toml? please help :(

zhaohuabing commented 4 years ago

You can change the font by customizing the css.

merikan commented 4 years ago

@EMTincopa You have the option to override css and js by providing your own custom ones #59

To override styling with a custom css:

  1. create your custom css file in folder static/css $ vim static/css/custom.css
  2. Add your custom css styling i.e.
    body {
    font-family: Century Gothic,CenturyGothic,AppleGothic,sans-serif; 
    }
  3. Update your configuration to enable the custom css file. Open config.toml and add the following: custom_css = ["css/custom.css"]
  4. Refresh your browser
EMTincopa commented 4 years ago

Thank you!!!