I have been trying to make a simple hugo site where the only page is a single content page - not a list. I tried making an _index.html page but this only worked for one of the themes (‘m10c’). I’m clearly misunderstanding something but it wasn’t very clear from looking at the docs so I have decided to ask here.
It would be nice to have the possibility to expand it to more than a single page in the future, but for now I just would like a single page and to be able to use a nice theme for it.
Would I need to override the theme’s baseof.html so that it has a .Content template inside it in order to accomplish this?
It depends on which theme you’re using, and how you want to add content to the home page (e.g., edit _index.md, use a data file, pull content from a page or branch bundle, etc.).
Some of the themes on the Hugo Themes site are tagged “landing”, indicating that they can be used for landing pages (a single page site): https://themes.gohugo.io/tags/landing/
Thanks for explaining that, I didn’t realise. I think knowing about the landing tag is good enough for me then, but more out of curiosity, is it possible to modify a theme that isn’t just a landing one? If so is there any specific place that I could find how to do this? I was expecting that there might be an obvious way to do it within a single md file, so I suppose editing the _index.md (the other options seem less straightforward).