Hi, I’m new to hugo. I’m using the tomfran’s typo theme to create my personal webpage.
I’m using Github Pages.
Effectively, I’m not able to get any fonts loaded. The developer console indicates that the filepaths for all fonts is a 404:
GET https://neel04.github.io/fonts/Monaspace/MonaspaceArgon-Regular.woff
net::ERR_ABORTED 404 (Not Found)
Which I can confirm by checking the link.
However, when building hugolocally - everything works as expected. The /public directory does contain /fonts which is accessible by the theme’s filepaths:
And since the baseURL = https://neel04.github.io/my-website/ then the filepaths should work out. For example, baseURL + favicon.ico does work indicating that hugo does resolve some paths correctly
And as you can see, locally its building the website perfectly, as hugo server confirms.
So I’m confused how to debug this issue that I can’t even reproduce locally
you could use a relative URL that takes you from the location of your CSS (I can’t see that from your screenshot). Maybe something like ../fonts/.... But you should be able to figure that out.