-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a7286ac
commit 8733d22
Showing
2 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Collection Objects | ||
|
||
A collection object is a group of pages that share a root path and other attributes. | ||
|
||
## Collection.slug | ||
The root path of all items in the collection. | ||
|
||
## Collection.content_from_path | ||
A path you can use to load a set of Pages (loaded using [content_from_file]) | ||
|
||
## Collection.pages | ||
The building blocks of collections. This is an iterable of [Page] objects. | ||
|
||
## Additional Collection Attrs | ||
Collection Attrs are similar to page attrs except they are passed to ALL PAGES IN THE COLLECTION | ||
|
||
Additional attrs can be _anything_ but common attrs include: | ||
|
||
* Author | ||
* Category | ||
* tags | ||
* Link | ||
* Intro | ||
* Content Footer | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters