-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
95 lines (67 loc) · 3.27 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
---
title: "Mundana Free Jekyll Theme"
layout: default
pagination:
enabled: true
description: "A great Jekyll theme developed by Sal @wowthemesnet."
---
<div class="container">
{% if page.url == "/" %}
{% for post in site.posts %}
{% if post.tags contains "sticky" %}
<div class="jumbotron jumbotron-fluid jumbotron-home pt-0 pb-0 mt-3 mb-2rem bg-lightblue position-relative">
<div class="pl-4 pr-0 h-100 tofront">
<div class="row justify-content-between">
<div class="col-md-6 pt-6 pb-6 pr-lg-4 align-self-center">
<h2 class="mb-3" style="font-family: 'Merriweather'; font-weight: bold;">{{post.title}}</h2>
<p class="mb-3 lead">
{{ post.excerpt | strip_html | strip_newlines | truncate: 136 }}
</p>
<a href="{{site.baseurl}}{{post.url}}" class="btn btn-dark">Read More</a>
</div>
<div class="col-md-6 d-none d-md-block pr-0" style="background-size:cover;background-image:url({{site.baseurl}}/{{ post.image }});">
</div>
</div>
</div>
</div>
{% endif %}
{% endfor %}
{% endif %} <!--endif page url is / -->
<div class="row mt-3">
<div class="col-md-8 main-loop">
<h4 class="spanborder" style="font-weight: 700;">All Posts</h4>
{% for post in site.posts %}
{% include 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 | prepend: site.baseurl | 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.baseurl}}/">{{ page }}</a></li>
{% else %}
<li class="page-item"><a class="page-link" href="{{ site.paginate_path | prepend: site.baseurl | 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 | prepend: site.baseurl | replace: '//', '/' }}">Next »</a></li>
{% else %}
<li class="page-item disabled"><span class="next page-link">»</span></li>
{% endif %}
</ul>
{% endif %}
</div>
</div>
<div class="col-md-4">
{% include sidebar-featured.html %}
</div>
</div>
</div>