-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
31 lines (31 loc) · 1.1 KB
/
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
30
31
---
layout: default
---
<div class="posts">
<div class="content full-bleed" id="recent-posts">
{% for post in site.posts limit:10 %}<a
href="{{site.url}}{{post.url}}" class="post-excerpt{% if post.photo_url %} photo{% endif %}">
<div class="padded-content">
<div class="title">{{ post.title }}</div>
{% if post.photo_url %}
<div class="image" style="background-image:url('{{ post.photo_url }}')"></div>
{% else %}
<!-- <div class="title">{{ post.title }}</div> -->
<info datetime="{{ page.date | date: "%Y-%m-%d" }}">
{{ post.date | date: "%b %d, %Y" }}
</info>
{% if post.description %}
<span class="body">{{ post.description | strip_html | truncatewords: 50 }}</span>
{% else %}
<span class="body">{{ post.excerpt | strip_html | truncatewords: 50 }}</span>
{% endif %}
{% endif %}<!-- post.photo_url -->
</div>
</a>{% endfor %}
<div class="breaker"></div>
<div class="end">
<a href="{{site.url}}archive/">More...</a>
</div>
</div>
</div>
{% include pagescript.html %}