# How to generate 1 page (of many)

**URL:** <https://discourse.gohugo.io/t/how-to-generate-1-page-of-many/41304>\
**Category:** support\
**Tags:** cli\
**Created:** [November 5, 2022, 11:18am UTC](https://discourse.gohugo.io/t/how-to-generate-1-page-of-many/41304 "2022-11-05T11:18:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TomOnTime](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/tomontime/32/2555_2.png) [@TomOnTime](https://discourse.gohugo.io/u/TomOnTime)\
**Post date:** [November 5, 2022, 11:18am UTC](https://discourse.gohugo.io/t/how-to-generate-1-page-of-many/41304/1 "2022-11-05T11:18:53Z")

</div>

I have a working Hugo site. It has hundreds of pages. However there are times I just want to regenerate a single page.

I know that hugo is super fast, often rendering hundreds or thousands of pages per second. However in this case I’m trying to optimize a particular situation and the fastest I can regenerate this one particular page the better.

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [November 5, 2022, 6:48pm UTC](https://discourse.gohugo.io/t/how-to-generate-1-page-of-many/41304/2 "2022-11-05T18:48:54Z")

</div>

If the one page you wish to render has no references to, or dependencies on, other pages then you could do something like…

```nohighlight
content/
├── posts/
│ ├── post-1.md <-- we only want to render this page
│ ├── post-2.md
│ └── post-3.md
└── _index.md

```

```nohighlight
config/
├── _default/
│ └── config.toml
└── one-page/
    └── config.toml

```

config/one-page/config.toml

```nohighlight
disableKinds = ['home','section','taxonomy','term','404','RSS','sitemap']

[[module.mounts]]
source = 'content'
target = 'content'
includeFiles = ['/posts/post-1.md']

```

Then build the site with:

```bash
hugo -e one-page

```

result

```nohighlight
public/
└── posts/
    └── post-1/
        └── index.html

```

But if this one page would normally contain references to other pages (related content, menu items that are attached to page references, etc.) the rendered page will be incomplete.

---

<div class="post-metadata">

**Author:** ![McShelby](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/mcshelby/32/15112_2.png) [@McShelby](https://discourse.gohugo.io/u/McShelby)\
**Post date:** [November 6, 2022, 12:54am UTC](https://discourse.gohugo.io/t/how-to-generate-1-page-of-many/41304/3 "2022-11-06T00:54:45Z")

</div>

This may be supported by Hugo in the near future. See [Add segments config + --renderSegments flag · Issue #10106 · gohugoio/hugo · GitHub](https://github.com/gohugoio/hugo/issues/10106)
