# List of posts for a section

**URL:** <https://discourse.gohugo.io/t/list-of-posts-for-a-section/43167>\
**Category:** support\
**Created:** [February 26, 2023, 8:50am UTC](https://discourse.gohugo.io/t/list-of-posts-for-a-section/43167 "2023-02-26T08:50:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hugoblogger](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/hugoblogger/32/17901_2.png) [@hugoblogger](https://discourse.gohugo.io/u/hugoblogger)\
**Post date:** [February 26, 2023, 8:50am UTC](https://discourse.gohugo.io/t/list-of-posts-for-a-section/43167/1 "2023-02-26T08:50:35Z")

</div>

Say I have a folder called `blobs` in the `content` folder (which I think is called Section in Hugo terms), and I have a corresponding `<theme>/layouts/blobs` folder. For the path `http://localhost:1313/blobs`, I like to get a page with list of posts under `blobs`.

Currently, I have these and I am not able to get it to work:

- An `_index.md` file under `content/blobs`
- Under `<theme>/layouts/blobs`, I have `index.html`, and also `single.html` (which I think is not relevant to render the list of posts).

If I read the docs right, the `_index.md` of a section is matched with the `index.html` of the section (or the default). The index.html may use `{{ .Content }}` to render the content of `_index.md`. Am not able to get this to work.

What am I missing?

---

<div class="post-metadata">

**Author:** ![Arif](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/arif/32/20931_2.png) [@Arif](https://discourse.gohugo.io/u/Arif)\
**Post date:** [February 26, 2023, 9:31am UTC](https://discourse.gohugo.io/t/list-of-posts-for-a-section/43167/2 "2023-02-26T09:31:06Z")

</div>

Change the `index.html` in `layouts/blobs` to `list.html`. `index.html` is for homepage and lives in the root of the `layouts` folder or inside the `_defaults` folder.

---

<div class="post-metadata">

**Author:** ![hugoblogger](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/hugoblogger/32/17901_2.png) [@hugoblogger](https://discourse.gohugo.io/u/hugoblogger)\
**Post date:** [February 26, 2023, 5:34pm UTC](https://discourse.gohugo.io/t/list-of-posts-for-a-section/43167/3 "2023-02-26T17:34:11Z")

</div>

Now that I try it in the morning, it seems obvious. Should never work late in the night 😂. Thanks @Arif

---

<div class="post-metadata">

**Author:** ![Arif](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/arif/32/20931_2.png) [@Arif](https://discourse.gohugo.io/u/Arif)\
**Post date:** [February 26, 2023, 5:43pm UTC](https://discourse.gohugo.io/t/list-of-posts-for-a-section/43167/4 "2023-02-26T17:43:52Z")

</div>

Welcome. See [Hugo's Lookup Order | Hugo](https://gohugo.io/templates/lookup-order/#examples-layout-lookup-for-section-pages).

---

<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:** [February 28, 2023, 5:44pm UTC](https://discourse.gohugo.io/t/list-of-posts-for-a-section/43167/5 "2023-02-28T17:44:33Z")

</div>

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