cocoa-eh-hugo-theme icon indicating copy to clipboard operation
cocoa-eh-hugo-theme copied to clipboard

Add option to disable Google Fonts and load fonts locally

Open LukasJoswiak opened this issue 4 years ago • 0 comments

There is an existing flag disablefancyfonts that turns off loading fonts via Google Fonts. I wanted to keep using these fonts, but didn't want to make a request to Google to load them.

This PR adds an additional flag, disablegooglefonts which can be set to true to load fonts from the server instead of making a request to Google Fonts.

Example (config.toml):

[params]
disablefancyfonts = false
disablegooglefonts = true

The disablegooglefonts flag only has an effect when disablefancyfonts is set to false. disablegooglefonts defaults to false.

LukasJoswiak avatar May 09 '20 02:05 LukasJoswiak