Yeah that’s a ton of issues. I think the original Theme used Netlify so idk if that’s why they used so many relatives. Some of those are definitely my fault though. I was under the impression that as long as it was under static you could just reference it like /images/the_image.jpg
I’m so new to web programming - the goal is that I need to make those links Global instead of relative right?
Thank you - a lot of these suggestions really helped towards getting this website on the right path!
There’s 2 things that I’m stuck on and this will be good to go!
I need to change a file within the theme. My search won’t work until I go into the themes/hugo-profile/static/js/search.js and changeawait fetch (/index.json) to wait fetch("index.json) . Something tells me that I should move the search.js file to my own static folder and modify it there. Is that right? But then I’d prob need to modify a ton of other js scripts. Idk
Fav.icon just WON’T let me find it. I’m stuck I got it for the main page. But for gallery or blog, it just won’t let me get it. It keeps 404’ing.
You need to do the same thing… path without leading slash, then pass through the relURL function.
I’ll look at the JS thing a little later.
Also, heads up… the sample GitHub Pages workflow in our documentation is going to change a little bit in about 10 minutes. Nothing major, but fixes a stupid caching limitation.
Thank you for updating me about the change! I would have for sure missed it
I accidentally omitted the relURL change to the fav.png on the previous commit, but I had tried it and ran into the 404 issue. Since it was in the root of static AND in the generated public (its not used but it was amazing for figuring out what components are relative to what) but still got the issue
the search.js fix of omitting the / infront of index.json is really intriguing too.