Index.md on third directory is not found

/content/posts/index.md
when i try make index.md in first directory, it shows the directory but
/content/posts/telegram/index.md
on second directory with index.md, it gives a black white page, is it a bug or there is something i didn’t follow in the docs?

Use _index.md at the root of a branch bundle (section).
Use index.md at the root of a leaf bundle.

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

hello
im a bit confused about this page bundle, I’d like to have this structure with my blog posts but i cant figure out where to use _index vs index, so what if i needed to do for example

content/posts/telegram/1
content/posts/telegram/2

or what if i wanted to write something on posts then

content/posts/telegram/1
content/posts/finance

thanks in advance.

To reiterate:

  • Use _index.md for sections (lists)
  • Use index.md for pages (content)

I’m not sure how to make this any clearer.

1 Like

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