Css files are taken from example.org

Hello,

My hugo runs fine locally, but whenever I publish my public folder to my siteground ftp, it tries to take the css files from example.org (I can see it in the chrome console).

Any idea why this is the case?

This is my url: jacovangelder.nl
github repo: GitHub - jacovg91/cv: My professional freelance resume using hugo.io

Thanks!

What is the baseURL set to?

To answer my own question: It’s a useless ‘/’. If you want your site to run non-locally, set the baseURL correctly.

Your repo is, btw, not very helpful, as it’s missing all content.

I’ve switched the baseurl around countless of times, it doesn’t change anything. I’ve now set it to my full domain, protocol, including a trailing slash etc. Like the documentation says. Still nothing.

What do you mean my repo is not helpful? this is all that’s needed to build the website.

You are missing the content directory.

Anyway, I suspect that you are not deleting the public folder (both locally and on your web host) before running the hugo command. Try that then check your site again. You can also run the command hugo --cleanDestinationDir, but I prefer deleting the folders manually.

Thanks for the response. I’m building the website on a github agent every time I make a change, and flushing the target FTP before uploading. No idea why, but it somehow worked now. The changing of the base url must have worked after all. Thanks both!