-
Notifications
You must be signed in to change notification settings - Fork 512
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to change the font-family #162
Comments
Besides setting |
Thanks for the quick follow up. In order to try out changes I did update the primary-font and add its url to typgraphy.scss file as below. I restarted the hugo server too but I don't see any changes. What could be wrong? Also would adding these files under dev.site/assets/scss folder work? Right now I am trying to change files under the theme folder. Thanks.
|
This is obviously wrong. You need to quote the URL (or HTML-escape it) since it contains a space, i.e.: @import url("https://fonts.googleapis.com/css?family=Comic Neue:400");
You need the extended version of Hugo to be able to recompile SCSS to CSS (in case you missed that 🙂).
Yes, |
Thanks for pointing out about the extended version of hugo. I had installed hugo on my ubuntu 20.04 machine through snap UI. I don't see a way to upgrade through it nor there seems to be a list of commands that could do it too. I will keep searching a way to upgrade to an extended version for this mandatory compilation. |
The extended version can be installed with the command But be aware that while Sass/SCSS works, the Snap package shows some serious deficiencies with Hugo modules and external binaries like Pandoc due to its strict confinement – thus manually installing the (extended) Debian package from GitHub releases seems to be the superior choice for the time being. |
Great thanks for the quick response. I did uninstall hugo and reinstall it through the deb file. I can now see the font changes reflected on the local deployment. Thanks for the help. |
I tried multiple ways to change the font-family but nothing worked out. Updating the _variables.scss file to change the $primary-font also didn't work. Could you please guide me?
Thanks.
The text was updated successfully, but these errors were encountered: