forked from renyuanz/leonids
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtags.html
29 lines (27 loc) · 769 Bytes
/
tags.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: page
title: Tags
permalink: /tags/
---
<ul class="tag-cloud">
{% for tag in site.tags %}
<li style="font-size: {{ tag | last | size | times: 100 | divided_by: site.tags.size | plus: 70 }}%">
<a class="post-tag" href="#{{ tag | first | slugize }}">
{{ tag | first }}
</a>
</li>
{% endfor %}
</ul>
<div class="tag-list">
{% for tag in site.tags %}
<div class="tag-group">
{% capture tag_name %}{{ tag | first }}{% endcapture %}
<h4 class="tag-group-title" id="{{ tag_name | slugize }}">{{ tag_name }}</h4>
{% for post in site.tags[tag_name] %}
<article class="tag-item">
<a class="tag-item-title" href="{{ site.url }}{{ post.url }}">{{post.title}}</a>
</article>
{% endfor %}
</div>
{% endfor %}
</div>