My website works fine locally when i run hugo server
I looked at my site and it gives me 404 errors, that It cannot find any of my Js or css files or any other files, though when i look in my public folder, everything seems to be in there.
I tried deploying my site to Render and the same issue occured.
after some testing i found my server was giving errors when i started it up:
Building sites … WARN 2020/03/27 18:40:19 found no layout file for "HTML" for kind "taxonomyTerm": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2020/03/27 18:40:19 found no layout file for "HTML" for kind "taxonomyTerm": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2020/03/27 18:40:19 Page.Hugo is deprecated and will be removed in a future release. Use the global hugo function.
I’ve seen these before, the question is is that, i dont think they would affect deployment, considering everything works in a local server, why wouldnt it work there?
So I’ve investigate the folder structure a bit and found that the sites that deployed correctly have _default in the layouts folder, where as this whole theme is missing it.
And after a rigorous configuring, I found out the problem was in the BaseURL.
the theme provides a baseurl in which i blindedly added my domains site, turns out it was messing around with the all the pathing, so i switched it to just /