-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
47 lines (46 loc) · 1.25 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
layout: default
---
{% for post in paginator.posts %}
<div class="post">
<!-- here add you post markup -->
<span class="post-date">{{ post.date | date(post.date, "%b %-d") }}</span>
<h2 class="post-title">
{% if post.link %}
<a href="{{ post.link }}">
{{ post.title }}
</a>
{% else %}
<a href="{{ post.url }}">
{{ post.title }}
</a>
{% endif %}
</h2>
<div class="content">
{{ post.content }}
</div>
<p class="byline">
<a href="{{ post.url }}">Posted on {{post.date | date_to_string }}</a> by {{post.author}}.
Categories: {{ post.categories | join("\n") }}
Tags: {{ post.tags | join("\n") }}
</p>
</div>
<hr class="post-separator" />
{% endfor %}
<!-- Pagination links -->
<div class="row">
<div class="span1 prev-container">
<ul class="pager">
{% if paginator.previous_page %}
<li><a href="/page{{paginator.previous_page}}" class="previous">Previous</a></li>
{% endif %}
</ul>
</div>
<div class="span1 offset6 next-container">
<ul class="pager">
{% if paginator.next_page %}
<li><a href="/page{{paginator.next_page}}" class="next ">Next</a></li>
{% endif %}
</ul>
</div>
</div>