# Content depth (migrating from Jekyll)

**URL:** <https://discourse.gohugo.io/t/content-depth-migrating-from-jekyll/26635>\
**Category:** support\
**Created:** [July 1, 2020, 12:42pm UTC](https://discourse.gohugo.io/t/content-depth-migrating-from-jekyll/26635 "2020-07-01T12:42:24Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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:** [July 1, 2020, 8:31pm UTC](https://discourse.gohugo.io/t/content-depth-migrating-from-jekyll/26635/6 "2020-07-01T20:31:36Z")

</div>

I suspect you have `index.md` files where you want `_index.md` files.

## Example 1: index.md in root of a/

Content:

```auto
content
└── a
    ├── b
    │ ├── c
    │ │ ├── baz.md
    │ │ └── quez.md
    │ ├── bar.md
    │ └── foo.md
    └── index.md

```

Command:

```bash
hugo --disableKinds=RSS,taxonomy,term,sitemap

```

Rendered pages:

```auto
public
├── a
│ └── index.html
└── index.html

```

## Example 2: \_index.md in root of a/

Content:

```auto
content
└── a
    ├── b
    │ ├── c
    │ │ ├── baz.md
    │ │ └── quez.md
    │ ├── bar.md
    │ └── foo.md
    └── _index.md

```

Command:

```bash
hugo --disableKinds=RSS,taxonomy,term,sitemap

```

Rendered pages:

```auto
public
├── a
│ ├── b
│ │ ├── bar
│ │ │ └── index.html
│ │ ├── c
│ │ │ ├── baz
│ │ │ │ └── index.html
│ │ │ └── quez
│ │ │ └── index.html
│ │ └── foo
│ │ └── index.html
│ └── index.html
└── index.html

```

## Documentation

> **[Content Organization](https://gohugo.io/content-management/organization)**
>
> Hugo assumes that the same structure that works to organize your source content is used to organize the rendered site.

> **[Page Resources](https://gohugo.io/content-management/page-resources/)**
>
> Page Resources -- images, other pages, documents etc. -- have page-relative URLs and their own metadata.

## Explanation

When you place either `index.md` or `_index.md` inside of a directory, you’ve told Hugo that the directory is a Page Bundle, of which there are two types:

Branch Bundles:

- Indicated by presence of `_index.md`
- Rendered as a list page using a `list.html` template
- There may be additional content further down the branch

Leaf Bundles:

- Indicated by presence of `index.md` (no underscore)
- Rendered as a content page using a `single.html` template
- This is the leaf at the _end_ of a branch; _content below this file in the directory structure will not be rendered_

---

_[View the full topic](https://discourse.gohugo.io/t/content-depth-migrating-from-jekyll/26635)._
