-
Notifications
You must be signed in to change notification settings - Fork 26
/
index.html
executable file
·143 lines (134 loc) · 5.17 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
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
142
143
---
layout: default
---
{% if site.layout_home_page == true %}
{% if site.featured-post-slider == true %}
<!-- featured post -->
<section>
<div class="container-fluid p-sm-0">
<div class="row featured-post-slider">
{% for post in site.posts %}
{% if post.featured == true %}
<div class="col-lg-3 col-sm-6 mb-2 mb-lg-0 px-1">
<article class="card bg-dark text-center text-white border-0 rounded-0">
<img class="card-img rounded-0 img-fluid w-100" src="{{post.image | relative_url}}" alt="{{post.title}}">
<div class="card-img-overlay">
<div class="card-content">
{% if post %}
{% assign categories = post.categories %}
{% else %}
{% assign categories = page.categories %}
{% endif %}
{% for category in post.categories %}
<a class="d-block mb-3 text-white text-uppercase" href="{{ 'category/' | relative_url }}{{ category | slugify }}">{{ category }}</a>
{% endfor %}
<h4 class="card-title mb-4"><a class="text-white" href="{{ post.url | relative_url }}">{{post.title}}</a></h4>
<a class="btn btn-outline-light" href="{{ post.url | relative_url }}">read more</a>
</div>
</div>
</article>
</div>
{% endif %}
{% endfor %}
</div>
</div>
</section>
<!-- /featured post -->
{% endif %}
<!-- blog post -->
<section class="section">
<div class="container">
<div class="row masonry-container">
{% if site.posts.size > 0 %}
{% for post in paginator.posts %}
<div class="col-lg-4 col-sm-6 mb-5">
<article class="text-center">
<img class="img-fluid mb-4" src="{{post.image | relative_url}}" alt="{{post.title}}">
{% if post %}
{% assign categories = post.categories %}
{% else %}
{% assign categories = page.categories %}
{% endif %}
{% for category in post.categories %}
<a class="d-block mb-3 text-dark text-uppercase" href="{{ 'category/' | relative_url }}{{ category | slugify }}">{{ category }}</a>
{% endfor %}
<h4 class="title-border"><a class="text-dark" href="{{ post.url | prepend: site.baseurl }}">{{post.title}}</a></h4>
<p>{{ post.content | strip_html | truncatewords: 35 }}</p>
<a href="{{ post.url | prepend: site.baseurl }}" class="btn btn-transparent">read more</a>
</article>
</div>
{% endfor %}
{% endif %}
</div>
{% include pagination.html %}
</div>
</section>
<!-- /blog post -->
{% include instagram.html %}
{% else %}
<!-- dividers -->
<div class="dividers">
<div class="divider"></div>
<div class="divider"></div>
<div class="divider"></div>
<div class="divider"></div>
</div>
<!-- hero area -->
<section class="hero-section">
<div class="container">
<div class="row">
<div class="col-lg-6 align-self-end">
<h1 class="mb-0">Welcome</h1>
<h2 class="mb-100 title-border-lg">to <i>{{site.author.name}} Blog</i></h2>
<p class="mb-80 mr-5">{{site.hero.hero-subtitle}}</p>
<span class="font-secondary text-dark mr-3 mr-sm-5">Follow</span>
<ul class="list-inline d-inline-block mb-5">
{% for social in site.social %}
<li class="list-inline-item mx-3"><a href="{{ social.link }}" class="text-dark"><i class="{{ social.icon }}"></i></a></li>
{% endfor %}
</ul>
</div>
<div class="col-lg-6 text-right">
<img class="img-fluid" src="{{site.hero.hero-banner | relative_url }}" alt="banner-image">
</div>
</div>
</div>
</section>
<!-- /hero area -->
<!-- blog post -->
<section class="section">
<div class="container">
<div class="row">
{% if site.posts.size > 0 %}
{% for post in paginator.posts %}
{% capture thecycle %}{% cycle 'odd', 'even' %}{% endcapture %}
{% if thecycle == 'odd' %}
{% assign class = '' %}
{% else %}
{% assign class = 'article-right' %}
{% endif %}
<div class="col-12 mb-100">
<article data-file="{{ post.url | prepend: site.baseurl }}" data-target="article" class="article-full-width {{class}}">
<div class="post-image">
<img class="img-fluid" src="{{post.image | relative_url}}" alt="{{post.title}}">
</div>
<div class="post-content">
<ul class="list-inline d-flex justify-content-between border-bottom post-meta pb-2 mb-4">
<li class="list-inline-item"><i class="ti-calendar mr-2"></i>{{post.date | date: '%b %d, %Y'}}</li>
<li class="list-inline-item"><i class="ti-alarm-clock mr-2"></i><span class="eta"></span> read</li>
</ul>
<h4 class="mb-4"><a href="{{ post.url | prepend: site.baseurl }}" class="text-dark">{{post.title}}</a></h4>
<p class="mb-0 post-summary">{{ post.content | strip_html | truncatewords: 35 }}</p>
<a class="btn btn-transparent mb-4" href="{{ post.url | prepend: site.baseurl }}">Continue...</a>
</div>
</article>
</div>
{% endfor %}
{% endif %}
</div>
{% include pagination.html %}
</div>
</section>
<!-- /blog post -->
{% include instagram.html %}
{% endif %}