-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
46 lines (34 loc) · 993 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
30
31
32
33
34
35
36
37
38
39
40
---
layout: default
---
<section class="container">
<span class="big">Blog</span>
<ul>
{% for post in site.posts limit:1 %}
<li>
<article>
<h1>
<a href="{{ post.url | prepend: site.baseurl }}" title="{{ post.title }}">{{ post.title }}</a>
</h1>
<p class="date">{{ post.date| date: "%m/%d/%Y" }}</p>
<div class="content">
<p>{{ post.content | strip_html | truncate: 250 }}</p>
</div>
</article>
</li>
{% endfor %}
{% for post in site.posts offset:1 %}
<li>
<article>
<h1>
<a href="{{ post.url | prepend: site.baseurl }}" title="{{ post.title }}">{{ post.title }}</a>
</h1>
<p class="date">{{ post.date | date: "%b %-d, %Y" }}</p>
</article>
</li>
{% endfor %}
</ul>
<nav class="pagination">
<a href="/posts/2">← Previous</a>
</nav>
</section>