-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·40 lines (34 loc) · 1003 Bytes
/
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
---
layout: index
---
<div class="content">
<div>
{% for nav in site.nav %}
<h2>
<a href="{{ site.url }}{{ nav.href }}">{{ nav.name }}</a>
</h2>
{% endfor %}
</div>
{% for post in paginator.posts %}
<div class="post-list">
<h2 class="post-title">
<a href="{{ site.url }}{{ post.url }}">{{ post.title }}</a>
</h2> {% if post.description %}
<p>{{ post.description }}</p>
{% endif %}
<div class="post-date">
<time>{{ post.date | date_to_string }}</time>
</div>
</div>
{% endfor %}
{% if paginator.total_pages > 1 %}
<div class="pages">
{% if paginator.previous_page %}
<a href="{{ site.url }}{{ paginator.previous_page_path | prepend: site.baseurl }}"><</a>
{% endif %}
{% if paginator.next_page %}
<a href="{{ site.url }}{{ paginator.next_page_path | prepend: site.baseurl }}">></a>
{% endif %}
</div>
{% endif %}
</div>