-
Notifications
You must be signed in to change notification settings - Fork 2
/
tag.html
29 lines (29 loc) · 879 Bytes
/
tag.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
---
layout: default
title: Tags
---
<a href="{{ site.url }}" >Home</a>
<div class="tags-expo">
{% assign sortedTags = (site.tags | sort:0) %}
<div class="tags-expo-list">Tags:
{% for tag in sortedTags %}
<a href="#{{ tag[0] | slugify }}" class="post-tag">{{ tag[0] }}</a>
{% endfor %}
</div>
<hr/>
<div class="tags-expo-section">
{% for tag in sortedTags %}
<h2 id="{{ tag[0] | slugify }}">{{ tag[0] }}</h2>
<ul class="tags-expo-posts">
{% for post in tag[1] %}
<a class="post-title" href="{{ site.baseurl }}{{ post.url }}">
<li>
{{ post.title }}
<small class="post-date">{{ post.date | date_to_string }}</small>
</li>
</a>
{% endfor %}
</ul>
{% endfor %}
</div>
</div>