-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
41 lines (38 loc) · 1.19 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
---
layout: default
title: Noraworld Diary
---
<table style="margin: 0 auto 60px; width: 100%; table-layout: fixed;">
<thead>
<tr>
{% for page in site.pages %}
{% if page.layout == 'page' %}
<th style="text-align: center;"><a href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a></th>
{% endif %}
{% endfor %}
</tr>
</thead>
</table>
{% for post in paginator.posts %}
<h3 style="text-align: center;"><a href="{{ post.url | prepend: site.baseurl }}">{{ post.date | date: "%Y-%m-%d" }}</a></h3>
<div class="content" style="margin-bottom: 60px;">
{{ post.content | strip_html | truncate: 300 }}
</div>
{% endfor %}
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | prepend: site.baseurl }}" class="previous">
Previous
</a>
{% else %}
<span class="previous">Previous</span>
{% endif %}
<span class="page_number ">
{{ paginator.page }} / {{ paginator.total_pages }}
</span>
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | prepend: site.baseurl }}" class="next">Next</a>
{% else %}
<span class="next">Next</span>
{% endif %}
</div>