-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
58 lines (51 loc) · 1.47 KB
/
index.html
File metadata and controls
58 lines (51 loc) · 1.47 KB
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
48
49
50
51
52
53
54
55
56
57
58
---
#
# By default, content added below the "---" mark will appear in the home page
# between the top bar and the list of recent posts.
# To change the home page layout, edit the _layouts/home.html file.
# See: https://jekyllrb.com/docs/themes/#overriding-theme-defaults
#
layout: base
---
{% for post in paginator.posts %}
<p class="author">
<span class="post-meta">{{ post.date | date: "%b %-d, %Y"}}</span>
</p>
<h3>
<a class="post-link" href="{{ post.url | relative_url }}">
{{ post.title | escape }}
</a>
</h3>
<div class="content">
{{ post.content | strip_html | truncatewords:40 }}
</div>
<br>
{% endfor %}
<!-- Pagination links -->
<div class="pagination">
<br>
<h3>
{% if paginator.page > 1 %}
<a href="{{ '/' | relative_url }}" class="last">( First )</a>
{% endif %}
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path }}" class="previous">
[ Prev ]
</a>
{% else %}
<span class="previous">📑</span>
{% endif %}
<span class="page_number ">
{{ paginator.page }} / {{ paginator.total_pages }}
</span>
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path }}" class="next">[ Next ]</a>
{% else %}
<span class="next ">🚧</span>
{% endif %}
<!-- Last Page -->
{% if paginator.page < paginator.total_pages %}
<a href="{{ site.paginate_path | replace: ':num', paginator.total_pages | relative_url }}" class="last">( Last )</a>
{% endif %}
</h3>
</div>