-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
47 lines (44 loc) · 1.22 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
---
layout: default
title: "Recently published"
tab: home
---
<div>
{% for post in paginator.posts %}
{% if post.listed %}
<div class="post-short">
<a href="{{site.url}}{{site.baseurl}}{{post.url}}">
<h2>{{post.title | markdownify | liquify | remove: "<p>" | remove: "</p>"}}</h2>
</a>
<a href="{{site.url}}{{site.baseurl}}/content/#{{ post.author | replace: " ", "-" }}">
<h3>{{post.author}}</h3>
</a>
<i>posted on {{ post.date | date: "%-d %b %Y" }}</i>
{% if post.excerpt %}
<blockquote>
{{ post.excerpt }}
</blockquote>
<a href="{{site.url}}{{site.baseurl}}{{post.url}}"><i>Read more...</i></a>
{% else %}
<blockquote>
{{ post.content }}
</blockquote>
{% endif %}
</div>
{% endif %}
{% endfor %}
</div>
{% if paginator.total_pages > 1 %}
<div class="pagination">
<span class="page_number ">
Page: <i>{{ paginator.page }}</i> of <i>{{ paginator.total_pages }}</i>
</span>
<br/>
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path }}" class="previous"><b>Previous</b></a>
{% endif %}
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path }}" class="next"><b>Next</b></a>
{% endif %}
</div>
{% endif %}