diff --git a/docs/_docs/collections.md b/docs/_docs/collections.md index a15cd71ab65..0b59b7db6d1 100644 --- a/docs/_docs/collections.md +++ b/docs/_docs/collections.md @@ -87,6 +87,20 @@ For example, if you have `_my_collection/some_subdir/some_doc.md`, it will be rendered using Liquid and the Markdown converter of your choice and written out to `/my_collection/some_subdir/some_doc.html`. +If you wish a specific page to be shown when accessing `/my_collection/`, +simply add `permalink: /my_collection/index.html` to a page. +To list items from the collection, on that page or any other, you can use: + +{% raw %} +```liquid +{% for item in site.my_collection %} +

{{ item.title }}

+

{{ item.description }}

+

{{ item.title }}

+{% endfor %} +``` +{% endraw %} +
Don't forget to add YAML for processing