Showing 404 on existing files

I’m trying out hugo to make a static simple site and for some reason none of the files I’m linking to are showing up. I’ve checked and none of them are drafts, I even changed archetype to default it to false and it still doesn’t shows up.

content
├── ações
│   └── index.md
├── creditos
│   └── index.md
├── direitos
│   ├── index.md
│   ├── privacidade.md
│   └── segurança.md
└── index.md

This is what my content direcory looks like.
I don’t know if it matters but I’m using the ‘congo’ theme.
One example of when this linking doesn’t work is that in my config.toml I have

[menu]
[[menu.main]]
  name = 'Seus direitos'
  url = '/direitos/'
  weight = -110

but still it doesn’t access the content/direitos/index.md file.
However, if I write it manually, while the server is running, it works.

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.

I just noticed the problem:

content
├── ações
│   └── index.md 
├── creditos
│   └── index.md
├── direitos
│   ├── index.md        <-- rename to _index.md
│   ├── privacidade.md
│   └── segurança.md
└── index.md            <-- rename to _index.md

https://gohugo.io/content-management/page-bundles

1 Like

Sorry I thought it without the _ would also work but thanks!

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