{%- macro render(post, from_index=false, from_sidebar=false) -%}

{%- if "end_date" in post and post.end_date != post.start_date -%} {{- post.start_date.strftime('%B %-d, %Y') }} – {{ post.end_date.strftime('%B %-d, %Y') -}} {%- else -%} {{- post.start_date.strftime('%B %-d, %Y') -}} {%- endif -%}

{%- if from_index or from_sidebar %}

{{ post.title }}

{%- else %}

{{ post.title }}

{%- endif -%} {% if not from_sidebar %}
{{ post.body }}
{% if post.categories %}
{% endif %} {% endif %}
{% endmacro %}