# Trouble adding a 'section'

**URL:** <https://discourse.gohugo.io/t/trouble-adding-a-section/34948>\
**Category:** support\
**Created:** [September 30, 2021, 5:50pm UTC](https://discourse.gohugo.io/t/trouble-adding-a-section/34948 "2021-09-30T17:50:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![thick\_hollins](https://avatars.discourse-cdn.com/v4/letter/t/a88e57/32.png) [@thick\_hollins](https://discourse.gohugo.io/u/thick_hollins)\
**Post date:** [September 30, 2021, 5:50pm UTC](https://discourse.gohugo.io/t/trouble-adding-a-section/34948/1 "2021-09-30T17:50:39Z")

</div>

[The hosted site on Netlify](https://thick-hollins.netlify.app/) - ‘projects’ is 404  
[My repo](https://github.com/thick-hollins/portfolio)

The section page I’m trying to create works on localhost but not remotely. The sub-pages do work e.g. at /project/nc-express-rest-api

I tried adding a blank \_index.md to the project folder, but that seems to have no effect. Unfortunately I’m having a bit of trouble understanding how Hugo puts things together 😕

---

<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:** [September 30, 2021, 6:43pm UTC](https://discourse.gohugo.io/t/trouble-adding-a-section/34948/2 "2021-09-30T18:43:25Z")

</div>

themes/hugo-theme-basic/layouts/section/project.html is empty.

Fix with:

```bash
cp layouts/_default/list.html layouts/project/

```

See:  
[https://gohugo.io/templates/lookup-order/#examples-layout-lookup-for-section-pages](https://gohugo.io/templates/lookup-order/#examples-layout-lookup-for-section-pages)

---

<div class="post-metadata">

**Author:** ![thick\_hollins](https://avatars.discourse-cdn.com/v4/letter/t/a88e57/32.png) [@thick\_hollins](https://discourse.gohugo.io/u/thick_hollins)\
**Post date:** [September 30, 2021, 7:20pm UTC](https://discourse.gohugo.io/t/trouble-adding-a-section/34948/3 "2021-09-30T19:20:43Z")

</div>

Fixed, thankyou!

The existence of the layouts/project folder was preventing the lookup of \_default/list.html?

---

<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:** [September 30, 2021, 7:25pm UTC](https://discourse.gohugo.io/t/trouble-adding-a-section/34948/4 "2021-09-30T19:25:34Z")

</div>

No.

The existence of themes/hugo-theme-basic/layouts/section/project.html was preventing the lookup of \_default/list.html.

---

<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:** [October 2, 2021, 7:26pm UTC](https://discourse.gohugo.io/t/trouble-adding-a-section/34948/5 "2021-10-02T19:26:06Z")

</div>

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