Home page doesn't work on complex themes?

I’m a newbie at this, so ask me for any information you may need without hesitation. Thanks for helping me.

I have a site (you’ll find it on hxxps://github.com/nlguerra2003/My-Hugo-Website --I already got two links and github will hide empty folders so please bear with me and the “hxxps” thing) that only has content/first-post.md and two themes themes/lugo (https://github.com/LukeSmithxyz/lugo) and themes/terminal (https://github.com/panr/hugo-theme-terminal).

When I execute hugo server -D, the main webpage (the one with just a list of websites) behaves differently depending on the theme.

If config.toml has theme = 'lugo' it will appear as I expect regarding content and styling. However, theme = 'terminal' won’t display any more content than the header and footer, no website list.

I’ve tried changing binding and baseUrl values while using both the themes, and everything stays the same: lugo works, terminal won’t show a thing.

Anything you would do to solve this? It doesn’t look like a theme-specific problem since other big themes will behave the same way. Only lugo works correctly for me.

PS: when loading with the terminal theme, chrome will return

Refused to apply style from ‘hxxp://localhost:1313/assets/%25!s%28%3cnil%3e%29.css’ because its MIME type (‘text/plain’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.

Don’t know how relevant this message is, but here you have anyway.

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.

Done. Thanks a lot for your suggestions

You need to find the template file in that theme where it links or references the file and make sure it sets the type to ‘text/css’.

As for the different themes, the Lugo theme doesn’t have an index.html in the layouts/_default so maybe it’s rendering your first-post.md file like that. The other theme does have an index.html in the templates so it would expect a _index.md file to render as the homepage.

I’m not certain on the above but it could be the issue.

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