ojroques / hugo-researcher

A simple resume theme for Hugo
GNU General Public License v3.0
229 stars 130 forks source link

Possible to use different font? #7

Closed somnathrakshit closed 3 years ago

somnathrakshit commented 3 years ago

Is there an easy way to use a different font for the website?

ojroques commented 3 years ago

Unfortunately no, to change the font you need to modify the theme itself. I don't plan to add the option of changing fonts because Inconsolata is at the core of this theme's design and I'm not even sure it is programmatically possible with Hugo themes, sorry.

But you're welcome to directly edit the code or fork this theme. Here are the lines you need to change: https://github.com/ojroques/hugo-researcher/blob/51fc9574a00b9399a8734a9849e8c2796ea05e75/layouts/partials/head.html#L9 https://github.com/ojroques/hugo-researcher/blob/51fc9574a00b9399a8734a9849e8c2796ea05e75/assets/sass/researcher.scss#L39

ojroques commented 3 years ago

I've just pushed support for font customization: you can now select the font to use in your website config.

The font you choose must be present at the visitor side. Therefore you must either: