{% set feed_url = blog.url == '/' or blog.url == base_url_relative ? (base_url_relative~'/'~blog.slug) : '/'~blog.slug %} {% set new_base_url = blog.url == '/' ? '' : blog.url %} {% set sidebar_page = pages.find('/sidebar') %} {% set sidebar_page_content = sidebar_page.content %} {% if config.plugins.simplesearch.enabled %}
{% endif %} {# get events by taxonomy #} {% set events = page.collection({ 'items': { '@page': '/blog' }, 'dateRange': { 'start': datetools.today|date('m/d/Y'), 'end': datetools.parseDate('+3 months')|date('m/d/Y') }, 'order': { 'by': 'date', 'dir': 'asc' }, 'limit': 10, 'pagination': true })|filter(page => page.header.event.start is defined) %} {% if events|length != 0 %}