-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
68 lines (62 loc) · 1.86 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
---
layout: default
title: Dysania
image: headers/desk.jpg
color: 880706
---
<!-- This loops through the paginated posts -->
{% for post in paginator.posts %}
{% assign author = site.authors[post.author] %}
<section class="date">
<p><span><a href="{{ site.baseurl }}{{ post.url }}">{{ post.date | date: "%B %d, %Y" }}</a></span> - <a href="{{ site.baseurl }}/about.html">{{ author.display_name }}</a></p>
</section>
<p>{{ post.content }}</p>
<p><a href="{{ site.baseurl }}{{ post.url }}#disqus_thread" id="comments-link">link</a></p>
<br /><br />
{% endfor %}
<!-- Pagination links -->
<div id="post-pagination" class="pagination">
{% if paginator.previous_page %}
<p class="previous">
{% if paginator.previous_page == 1 %}
<a href="{{ site.baseurl }}/">«</a>
{% else %}
<a href="{{ site.baseurl }}/{{ paginator.previous_page_path }}">«</a>
{% endif %}
</p>
{% else %}
<p class="previous disabled">
<span>«</span>
</p>
{% endif %}
<ul class="pages">
<li class="page">
{% if paginator.total_pages > 1 %}
{% if paginator.page == 1 %}
<span class="current-page">1</span>
{% else %}
<a href="{{ site.baseurl }}/">1</a>
{% endif %}
{% endif %}
</li>
{% for count in (2..paginator.total_pages) %}
<li class="page">
{% if count == paginator.page %}
<span class="current-page">{{ count }}</span>
{% else %}
<a href="{{ site.baseurl }}/page{{ count }}">{{ count }}</a>
{% endif %}
</li>
{% endfor %}
</ul>
{% if paginator.next_page %}
<p class="next">
<a href="{{ site.baseurl }}/{{ paginator.next_page_path }}">»</a>
</p>
{% else %}
<p class="next disabled">
<span>»</span>
</p>
{% endif %}
<div class="clearfix"></div>
</div>