lukeorth / poison

Professional Hugo theme for dev bloggers. Based on Mdo's classic Hyde theme.
https://poison.lukeorth.com
GNU General Public License v3.0
172 stars 94 forks source link

Images missing from built site on github pages #185

Closed rgbfireside closed 2 months ago

rgbfireside commented 2 months ago

Hey! I wanted to ask about the process for generating the path to an image. My brand image and favicon won't render if I attempt to use the correct filepaths on github pages. I kind of feel like a fool, but I did go and check the demo site's repository and I appear to have everything correctly organized.

image image image image

baseURL = "https://rgbfireside.github.io/rgbfireside/"

any chance you know something about what's going on? (github repo for the site if you need it.)

rgbfireside commented 2 months ago

found the culprit. The build process strips the first /$WEBSITE/ when it makes links- it won't refer to name.github.io/site/images, it goes to name.github.io/images instead.

rgbfireside commented 2 months ago

Well, mark that down as a reason I need to fork over the money for a domain sooner or later. Temporarily fixed by just adding the name of the site to the front of the image path.