-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
80 lines (76 loc) · 3.52 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
69
70
71
72
73
74
75
76
77
78
79
80
---
layout: default
title: Blog
subtitle: News and versions will be announced here
redirect_from:
- /blog.html
---
<section class="blog pt-50 pb-50">
<div class="container">
<div class="row">
<div class="col-lg-8">
<div class="col-lg-12 pt-20 pr-0 pl-0">
{% for post in paginator.posts %}
<article class="post">
<div class="post_header">
<h4 class="post_title"><a href="{{ post.url }}">{{ post.title }}</a></h4>
<div class="post_sub">{{ post.date | date_to_long_string }}</div>
</div>
<div class="post_content">
<p>{{ post.content | split: '<!-- more -->' | first | strip_html }}</p>
</div>
</article>
{% endfor %}
<!-- Pagination links -->
<nav aria-label="Page navigation" class="d-flex justify-content-center">
<ul class="pagination">
{% if paginator.previous_page %}
<li class="page-item">
<a class="page-link" href="{{ paginator.previous_page_path }}">Previous</a>
</li>
{% else %}
<li class="page-item disabled">
<a class="page-link" href="#" tabindex="-1">Previous</a>
</li>
{% endif %}
{% if paginator.page == 1 %}
<li class="page-item disabled">
<a class="page-link">1</a>
</li>
{% else %}
<li class="page-item">
<a class="page-link" href="{{ paginator.previous_page_path }}">1</a>
</li>
{% endif %}
{% for count in (2..paginator.total_pages) %}
{% if count == paginator.page %}
<li class="page-item disabled">
<a class="page-link">{{count}}</a>
</li>
{% else %}
<li class="page-item">
<a class="page-link" href="/blog/page{{count}}/">{{count}}</a>
</li>
{% endif %}
{% endfor %}
{% if paginator.next_page %}
<li class="page-item">
<a class="page-link" href="{{ paginator.next_page_path }}">Next</a>
</li>
{% else %}
<li class="page-item disabled">
<a class="page-link" href="#">Next</a>
</li>
{% endif %}
</ul>
</nav>
</div>
</div>
<div class="col-sm-4">
<div class="sidebar">
{% include gitter.html %}
</div>
</div>
</div>
</div>
</section>