-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
69 lines (62 loc) · 2.68 KB
/
index.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
---
layout: landing
---
<div class="container-fluid">
<div class="row overview">
<div class="col-md-8 article-section">
<ul class="post-list">
{% for post in site.categories.article limit:10 %}
<li>
<h3>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
</h3>
<h5>{% include date_ger.html date=post.date %}</h5>
<div>
{{ post.excerpt | remove: '<p>' | remove: '</p>' }}
{% if post.excerpt != post.content %}
<a href="{{ post.url | prepend: site.baseurl }}">(weiterlesen...)</a>
{% endif %}
</div>
</li>
{% endfor %}
</ul>
<h4><a href="_pages/artikel.html">alle Artikel</h4>
</div>
<div class="col-md-4">
<ul class="post-list">
{% for post in site.categories.event reversed %}
{% if site.time < post.date %}
<li>
<h3>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">
{% if site.orgs[post.organizer].image %}
<img class="icon" src="/assets/partners/{{ site.orgs[post.organizer].image}}"/>
{% endif %}
{{ post.title }}
</a>
</h3>
{% include event-metadata.html %}
{% if post.categories contains "event" and post.organizer contains "JUG" %}
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "EducationEvent",
"name": "{{ post.title }}",
"startDate" : "{{ post.date | date_to_xmlschema }}"{% if site.locations[post.location] %},
"location" : {
"@type" : "Place",
"sameAs" : "{{ site.locations[post.location].url }}",
"name" : "{{ site.locations[post.location].name }}",
"address" : "{{ site.locations[post.location].street }}; {{ site.locations[post.location].city }}"
}
{% endif %}
}
</script>
{% endif %}
</li>
{% endif %}
{% endfor %}
<h4><a href="_pages/events.html" class="pull-right">alle Events</a></h4>
</ul>
</div>
</div>