-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
executable file
·47 lines (44 loc) · 1.1 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
---
layout: main
title: Latest Posts
---
<div class="container-fluid homepage-jumbotron text-center">
<h1>{{ site.title }}</h1>
<p>{{ site.description }}</p>
</div>
{% assign post_count = site.posts | size %}
{% if post_count > 6 %}
<div class="posts-list container-fluid post-overflow">
{% elsif post_count > 1 %}
<div class="posts-list container-fluid">
{% else %}
<div class="posts-list container-fluid single-post">
{% endif%}
<div class="container">
<ul class="clean-list">
{% if post_count > 0 %}
{% for post in paginator.posts %}
<li>
{% include post-link.html %}
</li>
{% endfor %}
{% else %}
<li class="no-post">
<a class="link-clean" href="/">
<div class="post-info">
<h2>There is nothing there, yet!</h2>
<p>I'm sure it will come soon.</p>
</div>
</a>
</li>
{% endif %}
</ul>
{% if paginator.next_page %}
<div class="container more-article">
<div class="row justify-content-md-center">
<a class="link-clean col-md-3 text-center" href="/posts">See more articles</a>
</div>
</div>
{% endif %}
</div>
</div>