Hello,
I’m rather new to Hugo, and am doing test runs on site creation locally to get to grips with things.
Let’s say I have a site with a few files like:
posts/my_first_post.md
posts/another_post.md
posts/evenmore_post.md
about.md
This makes for a site with a structure of
posts/my_first_post/
posts/another_post/
posts/evenmore_post/
about/
And if you view /posts/ you get a listing of all the blog posts in a kind of directory.
Now my question is - what if you wanted to have a non-blogging section or something without a listing? Maybe a static docs directory, maybe standalone feature articles etc.
Something like
posts/my_first_post/
posts/another_post/
posts/evenmore_post/
about/
feature_articles/squares/
feature_articles/pyramids/
round_features/sphere/
round_features/torus/
Assuming the feature articles are built from squares.md,pyramids.md etc.
Is there any way to tell Hugo to not build a listing for a specified subdirectory? Ie I want a visitor to feature_articles or round_features to not see a listing, but perhaps a default page for that section? As far as I can tell putting an _index.md in the directory customises the text that appears for the list, not blocks it.
I’ve looked in the docs but can’t see anything on this topic. Perhaps I missed it?