-
Notifications
You must be signed in to change notification settings - Fork 5
/
index-6.html
executable file
·141 lines (126 loc) · 5.17 KB
/
index-6.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
---
layout: default
pagination:
enabled: true
---
<header class="header-top bg-grey justify-content-center py-2 d-lg-none">
<div class="container-fluid">
<nav class="navbar navbar-expand-lg navigation-2 navigation">
<a class="navbar-brand" href="{{ site.baseURL | relative_url }}">
<img src="{{site.site_logo | relative_url}}" alt="{{site.title}}" class="img-fluid"/>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar-collapse" aria-controls="navbar-collapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="ti-menu"></span>
</button>
<div class="collapse navbar-collapse" id="navbar-collapse">
{% include navigation.html %}
<ul class="list-inline mb-0 d-block d-lg-none">
{% include social_profiles.html %}
</ul>
</div>
</nav>
</div>
</header>
<div class="section-padding pb-0">
<div class="sidebar d-none d-lg-block">
<div class="sidebar-sticky">
<div class="logo-wrapper">
<a class="navbar-brand" href="{{ site.baseURL | relative_url }}">
<img src="{{site.site_logo | relative_url}}" alt="{{site.title}}" class="img-fluid"/>
</a>
</div>
<div class="main-menu">
<nav class="navbar navbar-expand-lg p-0">
<div class="navbar-collapse collapse" id="navbarsExample09">
<ul class="list-unstyled">
{% for link in site.data.navigation %}
{% assign active = nil %}
{% for sublink in link.submenu %}
{% if page.url contains sublink.url %}
{% assign active = 'active' %}
{% endif %}
{% endfor %}
{% if page.url contains link.url %}
{% assign active = 'active' %}
{% endif %}
<li class="nav-item {% if link.submenu %} dropdown {% endif %}">
<a class="nav-link {% if link.submenu %} dropdown-toggle {% endif %}" href="{{link.url | relative_url}}" id="dropdown{{forloop.index}}" {% if link.submenu %} data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" {% endif %}>{{link.text}} {% if link.submenu %} + {% endif %}</a>
{% if link.submenu %}
<div class="dropdown-menu" aria-labelledby="dropdown{{forloop.index}}">
{% for sublink in link.submenu %}
<a class="dropdown-item" href="{{sublink.url | relative_url}}">{{sublink.text}}</a>
{% endfor %}
</div>
{% endif %}
</li>
{% endfor %}
</ul>
</div>
</nav>
</div>
<div class="header-social-wrapper">
<ul class="list-inline mb-0">
{% include social_profiles.html %}
</ul>
</div>
</div>
</div>
<div class="content">
<div class="row">
{% for post in paginator.posts %}
<div class="col-lg-4 col-md-4 col-sm-6">
<article class="post-grid mb-5 ">
{% if post.post_image %}
<a class="post-thumb mb-4 d-block" href="{{post.url | relative_url}}.html">
<img src="{{post.post_image | relative_url}}" alt="{{post.title}}" class="img-fluid w-100"/>
</a>
{% endif %}
<div class="post-content-grid">
<div class="label-date">
<span class="day">{{post.date | date: "%d"}}</span>
<span class="month text-uppercase">{{post.date | date: "%b"}}</span>
</div>
<span class="cat-name text-color font-extra font-sm text-uppercase letter-spacing">{{post.categories | limit: "1"}}</span>
<h3 class="post-title mt-1"><a href="{{post.url | relative_url}}.html">{{post.title}}</a></h3>
<p>{{post.excerpt | strip_html | truncatewords: "25"}}</p>
</div>
</article>
</div>
{% endfor %}
</div>
<div class="pagination pt-4 mb-5 justify-content-center">
{% if paginator.total_pages > 1 %}
<ul class="list-inline ">
{% if paginator.previous_page %}
<li class="list-inline-item">
<a href="{{ paginator.previous_page_path | prepend: site.baseurl }}"><i class="ti-arrow-left"></i> Newest</a>
</li>
{% endif %}
{% if paginator.next_page %}
<li class="list-inline-item">
<a href="{{ paginator.next_page_path | prepend: site.baseurl }}">Older <i class="ti-arrow-right"></i></a>
</li>
{% endif %}
</ul>
{% endif %}
</div>
</div>
</div>
<div class="footer-home bg-grey py-4">
<div class="row">
<div class="col-lg-6 text-center text-lg-left">
{{site.copyright_text}}
</div>
<div class="col-lg-6">
<ul class="list-inline text-center mb-0 text-lg-right">
<li class="list-inline-item"><a href="#">Privacy policy</a></li>
<li class="list-inline-item"><a href="#">Support</a></li>
<li class="list-inline-item"><a href="#">About</a></li>
<li class="list-inline-item"><a href="#">Contact</a></li>
<li class="list-inline-item"><a href="#">Terms</a></li>
<li class="list-inline-item"><a href="#">Category</a></li>
</ul>
</div>
</div>
</div>
</div>