forked from PyDresden/pydresden.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnachrichten.html
46 lines (44 loc) · 1.48 KB
/
nachrichten.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
---
layout: default
title: blog
priority: 0.8
---
<section id='blog'>
<div class='container'>
<section class='wrapper tags'>
<header class='header'>
<h3 class='title'>{% include icons/tags.html %}Tags</h3>
</header>
<ul class='body'>
{% assign tags_list = site.tags %}
{% if tags_list.first[0] == null %}
<li class='no-tags'>No tags available in this site</li>
{% else %}
{% for tag in tags_list %}
<li>
{% include icons/tag.html %}
<a href="{{ site.baseurl}}/tags/{{ tag[0] }}">{{ tag[0] | capitalize }} -
<span> {{ tag[1].size }} {% if tag[1].size > 1 %} {{ 'Posts' }} {% else %} {{ 'Post' }} {% endif %}</span>
</a>
</li>
{% endfor %}
{% endif %}
</ul>
</section>
<section class='wrapper articles'>
<header class='header'>
<h3 class='title'>Nachrichten</h3>
</header>
<section class='body'>
{% for post in site.posts %}
<a href='{{site.baseurl}}{{post.url}}'>
<article class='article'>
<h4 class='title'>{{post.title}}</h4>
<span class='date'>{{ post.date | date: '%b %-d, %Y' }}</span>
</article>
</a>
{% endfor %}
</section>
</section>
</div>
</section>