/
event.html
28 lines (26 loc) · 1.11 KB
/
event.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
---
layout: base
---
{% include head.html page=page %}
<section class="section">
<h2 class="title is-1">{{ page.rdf | rdf_property: "rdfs:label" }}</h2>
<h3 class="subtitle is-2">{{ page.rdf | rdf_property: "aksw:hookline" }}</h3>
<div class="subtitle is-4">
{{ page.rdf | rdf_property: "schema:startDate" | date: "%-d. %B %Y" }}—{{ page.rdf | rdf_property: "schema:endDate" | date: "%-d. %B %Y" }}
</div>
{% assign homepage = page.rdf | rdf_property: "foaf:homepage" %}
{% if homepage %}
<div class="buttons">
<a class="button is-link" href="{{ homepage }}">Homepage</a>
</div>
{% endif %}
{% assign content = page.rdf | rdf_property: "site:content" %}
{% assign description = page.rdf | rdf_property: "schema:description" %}
{% if description %}
{{ description | markdownify | replace: "<h4", "<h6" | replace: "<h3", "<h5" | replace: "<h2", "<h4" | replace: "<h1", "<h3" }}
{% endif %}
{% if content %}
{{ content | markdownify | replace: "<h4", "<h6" | replace: "<h3", "<h5" | replace: "<h2", "<h4" | replace: "<h1", "<h3" }}
{% endif %}
</section>
{% include foot.html page=page %}