{% if include.post.categories contains 'event' %}
{% capture startday %}{{ include.post.eventstart | date: '%d.%m.%y' }}{% endcapture %}
{% capture endday %}{{ include.post.eventend | date: '%d.%m.%y' }}{% endcapture %}
{% if include.post.eventend %}
{% capture eventend %}
{% if startday == endday %}
{{ include.post.eventend | date: "%H:%M" }}
{% else %}
{{ include.post.eventend | date: "%d.%m.%Y %H:%M" }}
{% endif %}
{% endcapture %}
{% endif %}
Termin: {{ include.post.eventstart | date: "%d.%m.%Y %H:%M" }}{% if include.post.eventend %} - {{ eventend }}{% endif %}
{% if include.long %}
Ort: {% if include.post.location %}{{ include.post.location }}{% else %}Free Software Lab{% endif %}
{% if include.post.organizer %}Organisation: {{ include.post.organizer }}
{% endif %}
{% endif %}
{% else %}
{{ include.post.date | date: "%d.%m.%Y" }}
{% if include.post.author %}– {% if include.post.author_url %}{{ include.post.author }}{% else %}{{ include.post.author }}{% endif %}{% endif %}
{% endif %}