-
Notifications
You must be signed in to change notification settings - Fork 0
/
blog-by-tag.html
35 lines (30 loc) · 1.21 KB
/
blog-by-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
30
31
32
33
34
35
---
title: Blog
layout: default
---
{% include bloglinks.html %}
<h2>All Posts by Tag</h2>
<div id="tagcloud">
{% assign tags_sorted = site.tags | sort %}
{% for tag in tags_sorted %}
<li style="font-size: {{ tag | last | size | times: 150 | divided_by: site.tags.size | plus: 70 }}%; display:inline;">
<a href="#{{ tag | first | slugize }}">{{ tag | first }}</a>
</li>
{% endfor %}
</div>
<div id="archives">
{% for tag in tags_sorted %}
<div class="archive-group">
{% capture tag_name %}{{ tag | first }}{% endcapture %}
<a name="{{ tag_name | slugize }}"></a>
<h3 class="category-head">{{ tag_name }}</h3>
<ul>
{% for post in site.tags[tag_name] %}
<li class="archive-item"><a href="{{ site.baseurl }}{{ post.url }}">{{post.title}}</a> ({{post.date | date: "%Y-%m-%d" }})</li>
{% endfor %}
</ul>
</div>
{% endfor %}
</div>
<p><a href="/blog-all-posts.html">Complete list of all blog posts, chronologically</a></p>
(Thanks to <a href="https://blog.webjeda.com/jekyll-categories/" target="_blank">WebJeda</a> for the code snippet of the list and to <a href="http://vvv.tobiassjosten.net/jekyll/jekyll-tag-cloud/" target="_blank">Tobias Sjösten</a> for the tag cloud code.)