Skip to main

Events Sample Page

Testing out the event filters

Mixed pages & events

collection | getEvents('mixed') (the default) – Replaces event-pages with their events, while leaving non-event pages un-touched:

All page & events

collection | getEvents(true) – will add the events as list-items in addition to all existing pages in the collection:

Only events

collection | getEvents(false) – will add the events as list-items in addition to all existing pages in the collection:

Using index data

The index attribute in page-data has several effects:

The index value can be a string of the tag/collection name, or an object with slug attribute set to the desired collection. By default, pages with a bird are treated as an index for that bird (no slug required).

The index object has several attributes: