Skip to content

Commit 17df180

Browse files
author
Richard Hurt
committed
Added beginnings of a tag cloud
1 parent 03b3d9f commit 17df180

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

posts.html

+20-5
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,37 @@
33
title: Blog
44
permalink: posts/
55
---
6+
7+
68
<div class="row posts">
7-
<div class="large-12 columns">
9+
<div class="large-2 columns">
10+
<h3 class="subheader">Tags</h3>
11+
{% assign tags = site.tags | sort %}
12+
{% for tag in tags %}
13+
{% assign tag_count = tag | last | size %}
14+
{% if tag_count > 1 %}
15+
<span class="site-tag">
16+
<a href="/tag/{{ tag | first | slugify }}/"
17+
style="font-size: {{ tag | last | size | times: 4 | plus: 80 }}%">
18+
{{ tag[0] | replace:'-', ' ' }} ({{ tag | last | size }})
19+
</a>
20+
</span>
21+
{% endif %}
22+
{% endfor %}
23+
</div>
24+
<div class="large-10 columns">
825
{% for post in site.posts %}
926
<div class="row">
1027
<div class="large-3 columns date">
1128
{{ post.date | date: "%b %d, %Y" }}
1229
</div>
13-
<div class="large-6 columns details">
30+
<div class="large-9 columns details">
1431
<p>
1532
<a href="{{ post.url }}">{{ post.title }}</a> -
1633
{{ post.excerpt | strip_html | truncatewords:25 }}
1734
</p>
1835
</div>
19-
<div class="large-3 columns date">
20-
</div>
2136
</div>
2237
{% endfor %}
2338
</div>
24-
</div>
39+
</div>

0 commit comments

Comments
 (0)