/
index.html
executable file
·66 lines (47 loc) · 2.23 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
---
layout: default
title: "Home"
description: "Coffee again Script again."
---
{% include /home/home_page_url.html %}
<!-- Now the rest of the posts with the usual loop but with an offset:4 on the first page so we can skeep the first 4 posts displayed above -->
<div class="row mt-3">
<div class="col-md-8 main-loop">
<h4 class="font-weight-bold spanborder"><span>All Stories</span></h4>
{% for post in paginator.posts %}
{% include components/main-loop-card.html %}
{% endfor %}
<div class="mt-5">
<!-- Pagination links -->
{% if paginator.total_pages > 1 %}
<ul class="pagination">
{% if paginator.previous_page %}
<li class="page-item"><a class="page-link" href="{{ paginator.previous_page_path | replace: '//', '/' }}">« Prev</a></li>
{% else %}
<li class="page-item disabled"><span class="prev page-link">«</span></li>
{% endif %}
{% for page in (1..paginator.total_pages) %}
{% if page == paginator.page %}
<li class="page-item disabled"><span class="webjeda page-link">{{ page }}</span></li>
{% elsif page == 1 %}
<li class="page-item"><a class="page-link" href="{{site.url}}/">{{ page }}</a></li>
{% else %}
<li class="page-item"><a class="page-link" href="{{ site.paginate_path | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a></li>
{% endif %}
{% endfor %}
{% if paginator.next_page %}
<li class="page-item"><a class="page-link" href="{{ paginator.next_page_path | replace: '//', '/' }}">Next »</a></li>
{% else %}
<li class="page-item disabled"><span class="next page-link">»</span></li>
{% endif %}
</ul>
{% endif %}
</div>
<div style="width: 100%; height: auto !important; clear: both; text-align: center;" class="google-auto-placed"></div>
<div id="mys-wrapper" class="mys-wrapper"></div>
</div>
<div class="col-md-4">
{% include components/sidebar-featured.html %}
</div>
</div>
</div>