mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-15 03:04:37 -04:00
Page bundles: link to info about single vs. list page templates (#2116)
This commit is contained in:
parent
3fc7744d7d
commit
a4818d99b2
@ -19,16 +19,15 @@ A Page Bundle can be one of:
|
|||||||
- 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 content and attachments for single pages | Collection of attachments for section pages (home page, section, taxonomy terms, taxonomy list) |
|
| Usage | Collection of content and attachments for single pages | Collection of attachments for section pages (home page, section, taxonomy terms, taxonomy list) |
|
||||||
| Index filename | `index.md` [^fn:1] | `_index.md` [^fn:1] |
|
| Index filename | `index.md` [^fn:1] | `_index.md` [^fn:1] |
|
||||||
| Allowed Resources | Page and non-page (like images, PDF, etc.) types | Only non-page (like images, PDF, etc.) types |
|
| Allowed Resources | Page and non-page (like images, PDF, etc.) types | Only non-page (like images, PDF, etc.) types |
|
||||||
| 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)). |
|
| 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)). |
|
||||||
| Layout type | `single` | `list` |
|
| Layout type | [`single`](/templates/single-page-templates/) | [`list`](/templates/lists) |
|
||||||
| Nesting | Does not allow nesting of more bundles under it | Allows nesting of leaf or branch bundles under it |
|
| 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` |
|
| 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 |
|
| 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