-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcategories.html
60 lines (60 loc) · 1.84 KB
/
categories.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
---
layout: page
title: Kategorien
permalink: /categories/
icon: folder
header: true
biggerwrapper: true
---
<div class="ui inverted raised segment">
{% for category in site.categories %}
<h2 class="ui horizontal inverted divider" id="{{ category[0] }}"><i class="folder icon"></i> {{ category[0] }}</h2>
<div class="ui link stackable inverted cards">
{% for post in category[1] %}
<div class="ui raised card">
<div class="image" href="{{ post.url }}">
{% if post.preview %}
<img src="{{ site.github.url }}/img/{{ post.keyword }}/{{ post.preview }}">
{% else %}
<img src="{{ site.github.url }}/img/placeholderImage.png">
{% endif %}
</div>
<div class="content">
<div class="header"><a href="{{ post.url }}">{{ post.title }}</a></div>
<div class="meta">
<a>{% assign m = post.date | date: "%-m" %}
{{ post.date | date: "%-d" }}.
{% case m %}
{% when '1' %}Januar
{% when '2' %}Februar
{% when '3' %}März
{% when '4' %}April
{% when '5' %}Mai
{% when '6' %}Juni
{% when '7' %}Juli
{% when '8' %}August
{% when '9' %}September
{% when '10' %}Oktober
{% when '11' %}November
{% when '12' %}Dezember
{% endcase %}
{{ post.date | date: "%Y" }}</a>
</div>
<div class="description">
{{ post.content | strip_html | truncatewords: 15 }}
</div>
</div>
<div class="extra content">
<span class="right floated">
{{ post.author }}
</span>
<span>
<i class="tags icon"></i>
{% for tag in post.tags %}{{ tag }} {% endfor %}
</span>
</div>
</div>
{% endfor %}
</div>
{% endfor %}
</div>