Built Website Doesn't Pick Up Theme

When running my site locally, the Terminal theme works as it should. However, after building the website and putting it in my nginx web server, it looks like this:

Similar to this topic, but I didn’t want to necro the thread. Can anyone give me some step-by-step instructions so the nginx web server can pick up the theme?

Use your browser’s dev tools to see the 404 errors, and then correct your paths.

You are more likely to receive a prompt and accurate response if you post a link to the public repository for your project.

See https://discourse.gohugo.io/t/requesting-help/9132.

Let us see your code

Include a link to the source code repository of your project, because we really need the context of seeing your templates and partials to be able to help you. It is trivial to do a quick git clone on your repo, then run hugo server in your project, to help you out. On the other hand, recreating your code from screenshots, or sort of guessing at it, is not.

If you can’t share your repository for whatever reason, consider creating a dummy repo that you can share, which reproduces the problem you’re experiencing.

1 Like

I have just added the source code to GitHub: GitHub - linuxgamingcentral/website: Source code for Linux Gaming Central

Why is your baseURL / ?

It should be something like https://example.com/

Also, what the URL of the live site that’s failing?

It’s linuxgamingcentral.com.

It’s working now after putting that URL in the baseURL. Silly me. Thanks for your help!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.