-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
49 lines (48 loc) · 1.44 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
---
layout: default
---
<div class="home">
<div class="search-header">
<div class="search-container">
<form action="/search.html" method="get">
<button type="submit" value="search"><i class="fa fa-search"></i></button>
<div class="search-text">
<input type="text" id="search-box" name="query" placeholder="Search...">
</div>
</form>
</div>
</div>
<ul class="post-list">
{% for post in paginator.posts %}
<li>
<a href="{{ post.url | prepend: site.baseurl }}">
<div>
<h1 class="post-title">{{ post.title }}</h1>
<span class="post-meta">{{ post.date | date: "%B %-d, %Y" }}</span>
<p class="post-summary">{{ post.content | strip_html | truncatewords:60 }}<p>
</div>
</a>
</li>
{% endfor %}
</ul>
<!-- Pagination links -->
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path }}" class="page-link">
< Prev
</a>
{% else %}
<span class="page-link">< Prev</span>
{% endif %}
<span class="page-number ">
{{ paginator.page }} of {{ paginator.total_pages }}
</span>
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path }}" class="page-link">Next ></a>
{% else %}
<span class="page-link">Next ></span>
{% endif %}
</div>
</div>