Previous Tutorial
How to add a Collection
Why you should understand and use Collections
A very simple website often consists of a few pages with some text and images. What if you want to add a blog or a podcast? Collections do exactly that. A Collection displays a list of content in Roe such as a list of blog posts or podcast episodes. Collections allow you to add these lists anywhere in your site.
Add a Collection
- In the editor, click the
COLLECTIONbutton and you’ll see a form. - Add
All poststo the heading section and clickINSERT. - You will see a block like this:
```collection heading: All posts source: posts post_type: all template: list limit: 5 ```- This Collection shows your
postsunder the headingAll posts.
- This Collection shows your
- Check the preview and you’ll see a list of all the posts you have. Right now it’s probably just the welcome post, unless you created your own.
- In the collection, change
template: listtotemplate: compactand check the preview to see how it changes what the collection renders. - Let’s create a new post in the next tutorial and you’ll see it show up in this Collection.