-
Notifications
You must be signed in to change notification settings - Fork 0
/
blog.html
48 lines (39 loc) · 1.07 KB
/
blog.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
---
title: Blog
layout: default
---
<div class="row">
<div class="column right" >
<h2>Tagi</h2><br />
<!-- chmura tagów -->
{% assign all_tags = '' | split: ',' %}
{% for post in site.posts %}
{% for tags in post.tags %}
{% for tag in tags %}
{% assign all_tags = all_tags | push: tag %}
{% endfor %}
{% endfor %}
{% endfor %}
{% assign all_tags = all_tags | sort %}
{% assign all_tags = all_tags | uniq %}
{% for tag in all_tags %}
#<a href="{{ site.tag_dir | prepend: '/' }}/{{ tag | uri_escape }}">{{ tag }}</a>
{% endfor %}
</div>
<div class="column">
<ul>
{% assign years = site.posts
| group_by_exp: "post", "post.date | date: '%Y'"
%}
{% for year in years %}
<h1>{{ year.name }}</h1>
{% for post in year.items %}
<li>
<h2><a href="{{ post.url }}">{{ post.title }} - {{post.date | date_to_string}}</a></h2>
{{ post.excerpt }}
</li>
{% endfor %}
{% endfor %}
</ul>
</div>
</div>