{% 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 %} {# get events by taxonomy #} {% set events = page.collection({ 'items': { '@page.children': '/blog' }, 'dateRange': { 'start': datetools.today|date('m/d/Y'), 'end': datetools.parseDate('+3 months')|date('m/d/Y') }, 'order': { 'by': 'date', 'dir': 'desc' }, 'limit': 10, 'pagination': true })|filter(page => page.header.event.start is defined) %} {% if config.plugins.simplesearch.enabled %} {% endif %} {# display sidebar markdown page - hibbittsdesign.org #} {% if sidebar_page.header.position == 'top' or sidebar_page.header.position is empty %} {% if sidebar_page_content is not empty %} {% endif %} {% endif %} {% if events|length != 0 %} {% endif %} {% if config.plugins.relatedpages.enabled and related_pages|length > 0 %} {% endif %} {% if config.plugins.random.enabled %} {% endif %} {% if config.plugins.taxonomylist.enabled %} {% endif %} {% if config.plugins.archives.enabled and page.url == base_url ~ "/blog" %} {% endif %} {# display sidebar markdown page - hibbittsdesign.org #} {% if sidebar_page.header.position == 'bottom' %} {% if sidebar_page_content is not empty %} {% endif %} {% endif %} {% if config.plugins.feed.enabled %} {% endif %}