Prevent creation of pages from list items?

I have a page /team/ where I list each of my team members with their own bio markdown (e.g. paul.md, fred.md…) I have a template that is working well for the list page, but hugo is also generating pages for each of the sub-markdowns: /team/paul/ and /team/fred/.

How can I configure, for just this one directory / collection, to render only the list, and not the individual pages?

Search the docs for “build options”.

Thanks. I spent 3 days googling for this – I figured it’d be a front-matter solution.

For the benefit of anyone else who might run across this post:

1 Like

It still creates the /team/page/1/index.html file, but that’s not really a problem.

/team/page/1/index.html

You are paginating the list.

I spent 3 days googling

Next time you might consider coming here first…

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