blob: 0c560865acc2c52759a268183e5f9807d0c02bfe (
plain)
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
|
---
layout: default
title: Blog
pagination:
enabled: true
collection: posts
permalink: /page/:num/
per_page: 3
sort_field: date
sort_reverse: true
trail:
before: 1 # The number of links before the current page
after: 3 # The number of links after the current page
---
<div class="post">
<div class="header-bar">
<h1>{{ site.blog_name }}</h1>
<h2>{{ site.blog_description }}</h2>
</div>
<ul class="post-list">
{% for post in paginator.posts %}
<li>
<h3><a class="post-title" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></h3>
<p class="post-meta">{{ post.date | date: '%B %-d, %Y' }}</p>
<p>{{ post.description }}</p>
</li>
{% endfor %}
</ul>
{% include pagination.html %}
</div>
|