Added events collection and first event

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
2018-05-19 15:48:33 +02:00
parent b96c8670b4
commit 808a2b656a
5 changed files with 97 additions and 0 deletions

36
_layouts/event.html Normal file
View File

@ -0,0 +1,36 @@
---
layout: default
---
{% if page.date_modified %}
{% assign modified = page.date_modified %}
{% else %}
{% assign modified = page.date %}
{% endif %}
<div class="post" itemscope itemtype="http://schema.org/Event">
<header class="post-header">
<h1 class="post-title" itemprop="name about">{{ page.title }}</h1>
</header>
<ul class="list-unstyled">
<li>
<span class="far fa-map-marker"></span>
<span itemprop="location">{{ page.location }}</span>
</li>
<li>
<span class="far fa-calendar-alt"></span>
<time datetime="{{ page.start_date | date_to_xmlschema }}" itemprop="startDate">
{% if page.end_date %}Start: {% else %}Date: {% endif %}{{ page.start_date | date: "%b %-d, %Y %H:%M" }}
</time>
</li>
{% if page.end_date %}
<li>
<span class="far fa-calendar-alt"></span>
<time datetime="{{ page.end_date | date_to_xmlschema }}" itemprop="endDate">
End: {{ page.end_date | date: "%b %-d, %Y %H:%M" }}
</time>
</li>
{% endif %}
</ul>
<div class="text-justify" itemprop="description">{{ content }}</div>
</div>