-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
56 lines (52 loc) · 1.96 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
54
55
56
---
layout: base
---
<div class="home">
<div class="post-list">
{% if paginator.posts %}
{% for post in paginator.posts %}
{% if site.url %}
{% assign disqus_url = post.url | prepend: site.url %}
{% elsif site.github.url %}
{% assign disqus_url = post.url | prepend: site.github.url %}
{% endif %}
<div class="post">
<h1 class="post-title">
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title | escape }}</a>
<span class="post-meta publish-date">on {{ post.date | date: "%b %-d, %Y" }}</span>
<span class="post-meta comment-count">
<i class="fa fa-comments" aria-hidden="true"></i><span class="disqus-comment-count" data-disqus-identifier="{{ disqus_url }}"></span>
</span>
</h1>
<div class="post-preview">
{% if post.content contains '<!-- more -->' %}
{{ post.content | split:'<!-- more -->' | first }}
{% else %}
{{ post.excerpt }}
{% endif %}
<a href="{{ post.url }}">Read more...</a>
</div>
</div>
{% endfor %}
{% else %}
<h2>There is no post to be displayed.</h2>
{% endif %}
</div>
<!-- Pagination links -->
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path }}" class="btn previous"><i class="fa fa-angle-left" aria-hidden="true"></i> Previous</a>
{% endif %}
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path }}" class="btn next">Next <i class="fa fa-angle-right" aria-hidden="true"></i></a>
{% endif %}
</div>
<div class="pagination-clear"></div>
</div>
{% if site.disqus.shortname %}
<script id="dsq-count-scr" src="//{{ site.disqus.shortname }}.disqus.com/count.js" async>
$(document).ready(function () {
DISQUSWIDGETS.getCount({reset: true});
});
</script>
{% endif %}