Skip to main

Event Filters

src/filters/events.js


List

buildEvent()

Build an event-page out of combined event and page data, so that events can be treated as a page of their own

Params:

  • page {11ty page object}
  • event {object}

getEvents()

Turn collection-events into top-level pages, either in-addition-to or replacing their source pages

Params:

  • collection {11ty collection}
  • pages {boolean | mixed} = mixed

    Set true to leave event-source pages in the list, or false to remove all pages from the list and show events only

Links:

Upcoming

isFuture()

Check that the page/event has a start date in the future (or today)

Params:

  • page {event object}

getFuture()

Return only the pages/events in the future

Params:

  • events {array of events}

See Also: