Hey there
I’m fairly new to Hugo and so far it feels like i tried everything to work around this issue but I couldn’t find anything about this specific topic.
I’m using the mainroad theme, Hugo v0.120.4 and trying to make the site multilingual.
My folder structure therefore looks something like this:
-content
– de
—_index.md
— photos
----photos.md
— about_us
---- info.md
---- people.md
---- index.md
– en
My goal was that the menu bar doesn’t get too clustered and sites from the about_us directory will only get shown through the index.md file, which shows up in the menu bar. The problem is sites from this sub-directory don’t get rendered and so not recognized by the index.md file or by linking to them. As far as I’ve read is that it should be an _index.md file, in my case this broke the site completely.
The frontmatter part for the people.md, for example, looks like this:
---
title: "People"
sidebar: true
menu:
main:
parent: about_us
---
the one for index.md like this:
+++
title = 'about_us'
draft = false
[menu]
[menu.main]
pre = '<i class="fa-solid fa-code"></i>'
weight = 2
+++
The index.md files gets rendered but doesn’t recognize any sites in the same directory.
I’m really happy for any help, i have the feeling that i missed something basic completely.