-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
executable file
·37 lines (35 loc) · 1.43 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
---
layout: default
title: Home
---
{% for post in paginator.posts %}
<div class="posts">
<h1>
<a href="{{ site.github.url }}{{ post.url }}">{{ post.title }}</a>
</h1>
{% if post.image %}
<div class="thumbnail-container">
<a href="{{ site.github.url }}{{ post.url }}"><img src="{{ site.github.url }}/assets/img/{{ post.image }}"></a>
</div>
{% endif %}
<p>
{{ post.content | strip_html | truncate: 350 }} <a href="{{ site.github.url }}{{ post.url }}">Read more</a>
<span class="post-date"><i class="fa fa-calendar" aria-hidden="true"></i> {{ post.date | date_to_string }} - <i class="fa fa-clock-o" aria-hidden="true"></i> {% include read-time.html %}</span>
</p>
</div>
{% endfor %}
<!-- Pagination links -->
{% if paginator.total_pages > 1 %}
<div class="pagination">
{% if paginator.next_page %}
<a class="pagination-button pagination-active" href="{{ site.github.url }}{{ paginator.next_page_path }}" class="next">{{ site.data.settings.pagination.previous_page }}</a>
{% else %}
<span class="pagination-button">{{ site.data.settings.pagination.previous_page }}</span>
{% endif %}
{% if paginator.previous_page %}
<a class="pagination-button pagination-active" href="{{ site.baseurl }}{{ paginator.previous_page_path }}">{{ site.data.settings.pagination.next_page }}</a>
{% else %}
<span class="pagination-button">{{ site.data.settings.pagination.next_page }}</span>
{% endif %}
</div>
{% endif %}