# Can't render my section's \_index.md

**URL:** <https://discourse.gohugo.io/t/cant-render-my-sections--index-md/7264>\
**Category:** support\
**Created:** [June 30, 2017, 3:07pm UTC](https://discourse.gohugo.io/t/cant-render-my-sections--index-md/7264 "2017-06-30T15:07:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrichman](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/mrichman/32/8338_2.png) [@mrichman](https://discourse.gohugo.io/u/mrichman)\
**Post date:** [June 30, 2017, 3:07pm UTC](https://discourse.gohugo.io/t/cant-render-my-sections--index-md/7264/1 "2017-06-30T15:07:41Z")

</div>

Hey guys. I’m a little confused about how to get a custom page for my section. I have a section called `/content/services` which has an `_index.md` and 2 other files. Instead of rendering `_index.md` it’s serving up the `/<theme>/layouts/_default/list.html` template, which lists the 2 files in `/content/services`. How can I get `/content/services/_index.md` to render when browsing `http://localhost:1313/services/`? I also tried creating `/layouts/services/index.html` to no avail.

Using Hugo v0.24.1.

---

<div class="post-metadata">

**Author:** ![budparr](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/budparr/32/749_2.png) [@budparr](https://discourse.gohugo.io/u/budparr)\
**Post date:** [June 30, 2017, 4:35pm UTC](https://discourse.gohugo.io/t/cant-render-my-sections--index-md/7264/2 "2017-06-30T16:35:20Z")

</div>

That should render, but you can make a template specifically for that section  
`layouts/services/list.html`

---

<div class="post-metadata">

**Author:** ![rdwatters](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/rdwatters/32/2848_2.png) [@rdwatters](https://discourse.gohugo.io/u/rdwatters)\
**Post date:** [June 30, 2017, 6:02pm UTC](https://discourse.gohugo.io/t/cant-render-my-sections--index-md/7264/3 "2017-06-30T18:02:32Z")

</div>

Hugo will look for identical layouts in your project directory before it goes to the themes directory in terms of the lookup order…so @budparr 's solution will work as well.

I would recommend creating the same file but up a couple levels up at `yourproject/layouts/_default/list.html`.

You can then tweak the templating as needed. To get the content from the `_index.md` mentioned, you can add the `{{ .Content }}` variable.

---

<div class="post-metadata">

**Author:** ![mrichman](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/mrichman/32/8338_2.png) [@mrichman](https://discourse.gohugo.io/u/mrichman)\
**Post date:** [June 30, 2017, 6:11pm UTC](https://discourse.gohugo.io/t/cant-render-my-sections--index-md/7264/4 "2017-06-30T18:11:40Z")

</div>

If I create `/myproject/layouts/_default/list.html` then my theme’s `layouts/index.html` is no longer respected for some reason. The content from `/content/services/_index.md` will show though.

---

<div class="post-metadata">

**Author:** ![budparr](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/budparr/32/749_2.png) [@budparr](https://discourse.gohugo.io/u/budparr)\
**Post date:** [June 30, 2017, 6:16pm UTC](https://discourse.gohugo.io/t/cant-render-my-sections--index-md/7264/5 "2017-06-30T18:16:31Z")

</div>

You’re not getting any errors? Doesn’t sound related. You have a repo you can post?
