-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathposts.html
37 lines (37 loc) · 1.04 KB
/
posts.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
---
layout: default
title: Blog
permalink: posts/
---
<div class="row posts">
<div class="large-2 columns">
<h3 class="subheader">Tags</h3>
{% assign tags = site.tags | sort %}
{% for tag in tags %}
{% assign tag_count = tag | last | size %}
{% if tag_count > 1 %}
<span class="site-tag">
<a href="/tag/{{ tag | first | slugify }}/"
style="font-size: {{ tag | last | size | times: 4 | plus: 80 }}%">
{{ tag[0] | replace:'-', ' ' }} ({{ tag | last | size }})
</a>
</span>
{% endif %}
{% endfor %}
</div>
<div class="large-10 columns">
{% for post in site.posts %}
<div class="row">
<div class="large-3 columns date">
{{ post.date | date: "%b %d, %Y" }}
</div>
<div class="large-9 columns details">
<p>
<a href="{{ post.url }}">{{ post.title }}</a> -
{{ post.excerpt | strip_html | truncatewords:25 }}
</p>
</div>
</div>
{% endfor %}
</div>
</div>