mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-15 09:44:38 -04:00
Update the leaf bundle vs branch bundle table
Ref: https://discourse.gohugo.io/t/question-about-content-folder-structure/11822/4?u=kaushalmodi
This commit is contained in:
parent
09fa1bc4e8
commit
737f3dfca5
@ -21,13 +21,16 @@ A Page Bundle can be one of:
|
|||||||
- Leaf Bundle (leaf means it has no children)
|
- Leaf Bundle (leaf means it has no children)
|
||||||
- Branch Bundle (home page, section, taxonomy terms, taxonomy list)
|
- Branch Bundle (home page, section, taxonomy terms, taxonomy list)
|
||||||
|
|
||||||
| | Leaf Bundle | Branch Bundle |
|
| | Leaf Bundle | Branch Bundle |
|
||||||
|-----------------|--------------------------------------------------------|---------------------------------------------------------|
|
|-------------------------------------+----------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
| Usage | Collection of resources (pages, images etc.) for single pages | Collection of non-page resources (images etc.)for list pages |
|
| Usage | Collection of content and attachments for single pages | Collection of attachments for section pages (home page, section, taxonomy terms, taxonomy list) |
|
||||||
| Index file name | `index.md` [^fn:1] | `_index.md` [^fn:1] |
|
| Index file name | `index.md` [^fn:1] | `_index.md` [^fn:1] |
|
||||||
| Layout type | `single` | `list` |
|
| Allowed Resources | Page and non-page (like images, pdf, etc.) types | Only non-page (like images, pdf, etc.) types |
|
||||||
| Nesting | Doesn't allow nesting of more bundles under it | Allows nesting of leaf/branch bundles under it |
|
| Where can the Resources live? | At any directory level within the leaf bundle directory. | Only in the directory level **of** the branch bundle directory i.e. the directory containing the `_index.md` ([ref](https://discourse.gohugo.io/t/question-about-content-folder-structure/11822/4?u=kaushalmodi)). |
|
||||||
| Example | `content/posts/my-post/index.md` | `content/posts/_index.md` |
|
| Layout type | `single` | `list` |
|
||||||
|
| Nesting | Does not allow nesting of more bundles under it | Allows nesting of leaf or branch bundles under it |
|
||||||
|
| Example | `content/posts/my-post/index.md` | `content/posts/_index.md` |
|
||||||
|
| Content from non-index page files .. | Accessed only as page resources | Accessed only as regular pages |
|
||||||
|
|
||||||
|
|
||||||
## Leaf Bundles {#leaf-bundles}
|
## Leaf Bundles {#leaf-bundles}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user