-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
53 lines (46 loc) · 1.98 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
---
layout: default
---
{% for post in paginator.posts %}
<div class="list-of-posts">
<h2>
<a href="{{ site.url }}{{ post.url }}">{{ post.title }}</a>
</h2>
{% if post.image %}
<div class="thumbnail-container">
<a href="{{ site.url }}{{ post.url }}"><img src="{{ site.url }}/assets/{{ post.image }}"></a>
</div>
{% endif %}
<p>
{{ post.content | strip_html | truncate: 250 }}
<a href="{{ site.url }}{{ post.url }}">Read more</a>
<span class="dateline">
<i class="far fa-calendar-alt" aria-hidden="true"></i>
{{ post.date | date_to_string }} -
<i class="far fa-clock" aria-hidden="true"></i> {% include read-time.html %}
{% if site.disqus_shortname %}
{% if post.comments %}
- <i class="far fa-comments" aria-hidden="true"></i>
<a href="{{ site.url }}{{ post.url }}index.html#disqus_thread" data-disqus-identifier="{% if post.identifier %}{{post.identifier}}{% else %}{{post.url}}{% endif %}"></a>
{% endif %}
{% endif %}
</span>
</p>
</div>
{% endfor %}
<!-- Pagination links -->
<div class="pagination">
{% if paginator.previous_page %}
<a class="pagination-button pagination-active" href="{{ site.url }}{{ paginator.previous_page_path }}">Prev</a>
{% else %}
<span class="pagination-button">Prev</span>
{% endif %}
<span class="pagination-button">Page {{ paginator.page }} of {{ paginator.total_pages }}</span>
{% if paginator.next_page %}
<a class="pagination-button pagination-active" href="{{ site.url }}{{ paginator.next_page_path }}">Next</a>
{% else %}
<span class="pagination-button">Next</span>
{% endif %}
</div>
<!-- Add Disqus comment count (not the comments) -->
<script id="dsq-count-scr" src="//{{ site.disqus_shortname }}.disqus.com/count.js" async></script>