# Change Default Layouts Folder

**URL:** <https://discourse.gohugo.io/t/change-default-layouts-folder/49097>\
**Category:** support\
**Created:** [March 29, 2024, 5:51am UTC](https://discourse.gohugo.io/t/change-default-layouts-folder/49097 "2024-03-29T05:51:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![BayuAngora](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bayuangora/32/26104_2.png) [@BayuAngora](https://discourse.gohugo.io/u/BayuAngora)\
**Post date:** [March 29, 2024, 5:51am UTC](https://discourse.gohugo.io/t/change-default-layouts-folder/49097/1 "2024-03-29T05:51:33Z")

</div>

Dear All

I don’t use any “partials” file for my layout. So, I only use “list.html” and “single.html” inside my “layouts/\_default” folder.

How to change default layout folder to “layouts”, NOT “layouts/\_default”?

So it can be accessed through “layouts/list.html” and “layouts/single.html”, NOT “layouts/\_default/list.html” or “layouts/\_default/single.html”?

Thanks

---

<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:** [March 29, 2024, 6:09am UTC](https://discourse.gohugo.io/t/change-default-layouts-folder/49097/2 "2024-03-29T06:09:09Z")

</div>

> [@BayuAngora](#):
>
> How to change default layout folder to “layouts”, NOT “layouts/\_default”?

Read Hugo’s [Template Lookup order](https://gohugo.io/templates/lookup-order/).

---

<div class="post-metadata">

**Author:** ![BayuAngora](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bayuangora/32/26104_2.png) [@BayuAngora](https://discourse.gohugo.io/u/BayuAngora)\
**Post date:** [March 29, 2024, 7:08am UTC](https://discourse.gohugo.io/t/change-default-layouts-folder/49097/3 "2024-03-29T07:08:02Z")

</div>

I have read that doc but it’s all about “layouts/subfolder/list.html” or “layouts/subfolder/single.html”?

Is there a way to use it without “subfolder” such “layouts/\_default” or “layouts/section” or “layouts/posts” etc?

So every content can be accessed through “layouts/list.html” and “layouts/single.html”?

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [March 29, 2024, 9:22am UTC](https://discourse.gohugo.io/t/change-default-layouts-folder/49097/4 "2024-03-29T09:22:25Z")

</div>

> [@BayuAngora](#):
>
> So every content can be accessed through “layouts/list.html” and “layouts/single.html”?

I guess you could mount `layouts` to `layouts/_default`, see:

See [Configure modules](https://gohugo.io/hugo-modules/configuration/#module-configuration-mounts)

---

<div class="post-metadata">

**Author:** ![BayuAngora](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bayuangora/32/26104_2.png) [@BayuAngora](https://discourse.gohugo.io/u/BayuAngora)\
**Post date:** [March 29, 2024, 12:41pm UTC](https://discourse.gohugo.io/t/change-default-layouts-folder/49097/5 "2024-03-29T12:41:09Z")

</div>

Thanks. I will check it.

---

<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:** [March 31, 2024, 12:42pm UTC](https://discourse.gohugo.io/t/change-default-layouts-folder/49097/6 "2024-03-31T12:42:04Z")

</div>

Closed on March 31, 2024, 12:42pm UTC

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