How to disable list page only?

I create and save content like this.

content/
`-- posts/
    |-- content-one/
    |   |-- images/
    |   `-- index.md
    |-- content-two/
    |   |-- images/
    |    `-- index.md
    `-- content-three/
        |-- images/
         `-- index.md

The question is:
How to disable list page url /posts/?
How to remove /posts/ url from sitemap?
How do I delete the /posts/ url, but still can access the single page?

Anyone can help me to solve this problem?

hugo new posts/_index.md

content/posts/_index.md

+++
title = "Posts"
date = 2021-07-04T14:58:56-07:00
draft = false
[_build]
  render = "never"
  list = "never" 
+++

See https://gohugo.io/content-management/build-options

3 Likes

All works.Thanks, you help me again :grin:

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