-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
35 lines (31 loc) · 1.21 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
---
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.teaser %}
<a href="{{ site.github.url }}{{ post.url }}"><img src="{{ site.github.url }}/images/{{ post.image.teaser }}"></a>
{% endif %}
<p>
{{ post.content | strip_html | truncate: 350 }} <a href="{{ site.github.url }}{{ post.url }}">Read more</a>
<span class="post-date" style="margin-top:3px"><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 -->
<div class="pagination">
{% if paginator.next_page %}
<a class="pagination-button pagination-active" href="{{ site.github.url }}{{ paginator.next_page_path }}" class="next">Older</a>
{% else %}
<span class="pagination-button">Older</span>
{% endif %}
{% if paginator.previous_page %}
<a class="pagination-button pagination-active" href="{{ site.baseurl }}{{ paginator.previous_page_path }}">Newer</a>
{% else %}
<span class="pagination-button">Newer</span>
{% endif %}
</div>