Skip to content

Instantly share code, notes, and snippets.

@puterleat
Created November 16, 2016 10:11
Show Gist options
  • Save puterleat/68450e8db8121f7e271915cdab147286 to your computer and use it in GitHub Desktop.
Save puterleat/68450e8db8121f7e271915cdab147286 to your computer and use it in GitHub Desktop.
in events_list.html replace this line:
{% assign events = site.events | sort: 'document.starts' %}
with:
{% if list_event_type %}
{% assign events = site.events | sort: 'document.starts' | where:'eventtype', list_event_type %}
{% else %}
{% assign events = site.events | sort: 'document.starts' %}
{% endif %}
then in intensive-training.markdown add this line above the list:
### Forthcoming workshops and training events
{% assign list_event_type = 'intensive' %}
{% include event_list.html %}
You can do this anywhere you use the event_list.html include... If you don't specify the list_event_type it will default to all events.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment