# Make /posts/ folder be the main folder to show up

**URL:** <https://discourse.gohugo.io/t/make-posts-folder-be-the-main-folder-to-show-up/32503>\
**Category:** support\
**Created:** [April 24, 2021, 2:23am UTC](https://discourse.gohugo.io/t/make-posts-folder-be-the-main-folder-to-show-up/32503 "2021-04-24T02:23:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![1hiking](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/1hiking/32/14174_2.png) [@1hiking](https://discourse.gohugo.io/u/1hiking)\
**Post date:** [April 24, 2021, 2:23am UTC](https://discourse.gohugo.io/t/make-posts-folder-be-the-main-folder-to-show-up/32503/1 "2021-04-24T02:23:22Z")

</div>

Sorry if I cannot explain this correctly, basically I have the following order in content:

```
D:.
│ aboud.md
│ _index.md
│
├───lists
│ f-droid.md
│ _index.md
│
└───post
        Introduction2021.md
        _index.md

```

However when I serve the page, lists is shown up in the main blog instead of post, I want to “hide” lists folder and be only accesible in the navigation bar (which I have done already)

How do I “hide” lists folder from showing up? I appreciate any answer, I would also like to add I am using the notepadium theme. I also have added “headless: true” in index of lists but nothing happens…

---

<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:** [April 24, 2021, 2:59am UTC](https://discourse.gohugo.io/t/make-posts-folder-be-the-main-folder-to-show-up/32503/2 "2021-04-24T02:59:17Z")

</div>

Can you please post a link to the public repository for your project?

See [https://discourse.gohugo.io/t/requesting-help/9132](https://discourse.gohugo.io/t/requesting-help/9132).

> Include a **link to the source code repository** of your project, because we really need the _context_ of seeing your templates and partials to be able to help you. It is trivial to do a quick `git clone` on your repo, then run `hugo server` in your project, to help you out. On the other hand, recreating your code from screenshots, or sort of guessing at it, is not.
> 
> If you can’t share your repository for whatever reason, consider creating a dummy repo that you _can_ share, which reproduces the problem you’re experiencing.

---

<div class="post-metadata">

**Author:** ![1hiking](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/1hiking/32/14174_2.png) [@1hiking](https://discourse.gohugo.io/u/1hiking)\
**Post date:** [April 24, 2021, 3:46pm UTC](https://discourse.gohugo.io/t/make-posts-folder-be-the-main-folder-to-show-up/32503/3 "2021-04-24T15:46:22Z")

</div>

I apologize, here is my repo where I have pushed those changes: [GitHub - 1hiking/1hiking.github.io at TestingBranch](https://github.com/1hiking/1hiking.github.io/tree/TestingBranch)

---

<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:** [April 25, 2021, 6:05am UTC](https://discourse.gohugo.io/t/make-posts-folder-be-the-main-folder-to-show-up/32503/4 "2021-04-25T06:05:55Z")

</div>

Add this to config.toml, just beneath `[params]`:

```auto
mainSections = "posts"

```

---

<div class="post-metadata">

**Author:** ![1hiking](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/1hiking/32/14174_2.png) [@1hiking](https://discourse.gohugo.io/u/1hiking)\
**Post date:** [April 25, 2021, 3:37pm UTC](https://discourse.gohugo.io/t/make-posts-folder-be-the-main-folder-to-show-up/32503/5 "2021-04-25T15:37:22Z")

</div>

It works now! thank you 🙂 just for reference where is this located on the Hugo docs? I have been trying to read them but I feel a bit lost

---

<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:** [April 25, 2021, 3:39pm UTC](https://discourse.gohugo.io/t/make-posts-folder-be-the-main-folder-to-show-up/32503/6 "2021-04-25T15:39:02Z")

</div>

This was not in the documentation. It is an idiosyncrasy of the theme.

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [April 27, 2021, 3:39pm UTC](https://discourse.gohugo.io/t/make-posts-folder-be-the-main-folder-to-show-up/32503/7 "2021-04-27T15:39:38Z")

</div>

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