forked from prose/starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
30 lines (27 loc) · 969 Bytes
/
index.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
section: blog
---
<div class='listing'>
{% for item in site.categories.blog limit:1000 %}
<div class='article-summary row'>
{% if item.thumbnail %}
{% if item.thumbnail contains 'http' %}
{% capture thumbnail %}{{item.thumbnail}}{% endcapture %}
{% else %}
{% capture thumbnail %}{{site.baseurl}}{{item.thumbnail}}/{% endcapture %}
{% endif %}
<a href='{{site.baseurl}}{{item.url}}'>
<img class='article-splash' src='{{thumbnail}}' />
</a>
{% endif %}
<div class='twelve columns'>
<h3 class='article-summary-header'><a class='article-link' href='{{site.baseurl}}{{item.url}}'>{{item.title}} <span class='date'>~ {{item.date | date:"%b %d"}}</span></a></h3>
<p>
{{item.summary}}
</p>
<a class='article-more-link' href='{{site.baseurl}}{{item.url}}'>[more]</a>
</div>
</div>
{% endfor %}
</div>