Hugo: index vs. _index
1 minute read #solved #tools: hugo #tools
./content/index.md, and poof! … all tags gone, all blog postings gone.
It makes sense, if you think about it.
index.md is a special file, which automatically marks the directory it is in
as a so-called
which then makes all the files and directories and all directories become
“irrelevant” – a
leaf bundle has no children.
So, what I actually wanted to do was to rename it to
_index.md, which marks
./content as what it is – a
Or in short: don’t put
index.md files in
./content. If you want to update
your home page, use
- Add content and Front Matter to the Homepage (Hugo docs)
- What is the difference between _index.md and index.md? (Hugo forums)