nicokaiser / hugo-theme-gallery

Gallery Theme for Hugo
https://nicokaiser.github.io/hugo-theme-gallery/
MIT License
305 stars 85 forks source link

Fix relative path for font #31

Closed nickmurison closed 8 months ago

nickmurison commented 8 months ago

First of all, thanks for building this theme :)

I noticed some 404 errors when publishing this to a site with a baseUrl that isn't the web root (e.g. https://www.example.org/photos/ instead of https://photos.example.org/). There were a few places where the fonts folder was assumed to be in the web root, meaning the InterVariable.woff2 font wasn't loading correctly. I've updated the path to be relative where needed.

nicokaiser commented 8 months ago

Nice catch, thanks! I did not think of relURL, so I made everything absolute. I also fixed the font location, could you test v2.2.1 of the theme?

nickmurison commented 8 months ago

v2.2.1 works great, thanks!