Files
2martens.de/_layouts/event.html
Jim Martens b21db27f86
All checks were successful
the build was successful
Change road icon to regular font
Signed-off-by: Jim Martens <github@2martens.de>
2018-11-23 10:07:37 +01:00

41 lines
1.5 KiB
HTML

---
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>
<div itemprop="location" itemscope itemtype="http://schema.org/Place">
<span class="far fa-map-marker"></span>
<span itemprop="name">{{ page.location }}</span><br />
{% if page.location != page.address %}<span class="far fa-road"></span>{% endif %}
<span {% if page.location == page.address %}class="invisible" {% endif %}itemprop="address">{{ page.address }}</span>
</div>
</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>