# Directory to group content files without influence on without creating influence on url sections etc

**URL:** <https://discourse.gohugo.io/t/directory-to-group-content-files-without-influence-on-without-creating-influence-on-url-sections-etc/57572>\
**Category:** support\
**Created:** [September 22, 2026, 8:23pm UTC](https://discourse.gohugo.io/t/directory-to-group-content-files-without-influence-on-without-creating-influence-on-url-sections-etc/57572 "2026-09-22T20:23:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Natural\_Nationalism](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/natural_nationalism/32/24928_2.png) [@Natural\_Nationalism](https://discourse.gohugo.io/u/Natural_Nationalism)\
**Post date:** [September 22, 2026, 8:23pm UTC](https://discourse.gohugo.io/t/directory-to-group-content-files-without-influence-on-without-creating-influence-on-url-sections-etc/57572/1 "2026-09-22T20:23:47Z")

</div>

What is the simplest way to use folders to group content files without changing the url or section tree ? Like a leaf bundle, but simpler, hugo would just flatten the directory. I won’t use leaf bundle because I **need** my files to bear their name, “index” is a no-go.  
What I mean:

.  
├── archives  
│ ├── au-delà-de-l-œdipe.css  
│ ├── au-delà-de-l-œdipe.en.html  
│ └── au-delà-de-l-œdipe.html  
├── auteur.en.md  
├── auteur.md  
├── essai  
│ └── a.md  
├── \_index.en.md  
└── \_index.md

it should read three as if the content was of “essai” was raised one level.

---

<div class="post-metadata">

**Author:** ![irkode](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/irkode/32/26135_2.png) [@irkode](https://discourse.gohugo.io/u/irkode)\
**Post date:** [September 23, 2026, 6:44am UTC](https://discourse.gohugo.io/t/directory-to-group-content-files-without-influence-on-without-creating-influence-on-url-sections-etc/57572/2 "2026-09-23T06:44:18Z")

</div>

If I got it right you can configure a combination of cascade and permalinks in your `hugo.toml` to achieve that:

- do not render the section page for `/essai/`
- render all pages below `/essai/` to the _Root_  
`/essai/a.md` is rendered to `/a/index.html` and linked as `/a/` (unless you have _uglyUrls_ set to _true_)

```auto
# suppress render of the grouping folder"
[[cascade]]
   [cascade.build]
      render = "never"
   [cascade.target]
      path = "{/essai}"

# redirect the urls for grouping folder content
[[permalinks]]
   pattern = '/:slugorcontentbasename'
   [permalinks.target]
      path = '{/essai/**}'

```

you can tweak the filename, targets, … see:

- [Configure permalinks](https://gohugo.io/configuration/permalinks/#article)
- [Configure cascade](https://gohugo.io/configuration/cascade/#article)
- [Build options](https://gohugo.io/content-management/build-options/)

hint: use `--printPathWarnings` to check for duplicates

---

<div class="post-metadata">

**Author:** ![Natural\_Nationalism](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/natural_nationalism/32/24928_2.png) [@Natural\_Nationalism](https://discourse.gohugo.io/u/Natural_Nationalism)\
**Post date:** [September 24, 2026, 2:31am UTC](https://discourse.gohugo.io/t/directory-to-group-content-files-without-influence-on-without-creating-influence-on-url-sections-etc/57572/3 "2026-09-24T02:31:44Z")

</div>

Thought of that… but I was looking for a simpler way.
