-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
61 lines (51 loc) · 1.93 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
57
58
59
60
61
---
layout: default
title: Hieu's blog
---
<div class="home">
<div class="post-list">
{% for post in paginator.posts %}
<article class="post_card post">
<header class="post_header">
<h1 class="post_title"><a href="{{ post.url | prepend: site.baseurl }}">{{ post.title}}</a></h2>
<time class="post_date">[{{ post.date | date: "%A %d %B %Y" }}] - {{ post.category | split:'' }} - {{ post.content | number_of_words | divided_by:180 | plus:1 }} min read</time>
</header>
<div class="post_excerpt" title="Read full article" onclick="location.href='{{ post.url | prepend: site.baseurl }}';" style="cursor: pointer;">
<p>
{{ post.excerpt }}
</p>
</div>
<footer class="post_meta">
</footer>
<hr/>
</article>
{% endfor %}
{% if paginator.total_pages > 1 %}
<div class="pagination">
{% if paginator.previous_page %}
{% if paginator.page == 2 %}
<a href="{{ site.siteurl }}/">« Prev</a>
{% else %}
<a href="{{ site.siteurl }}/page{{ paginator.previous_page }}/">« Prev</a>
{% endif %}
{% else %}
<span>« Prev</span>
{% endif %}
{% if paginator.next_page %}
<a class='next' href="{{ site.siteurl }}/page{{ paginator.next_page }}/">Next »</a>
{% else %}
<span class='next'>Next »</span>
{% endif %}
</div>
{% endif %}
</div>
</div>
<script src="{{ site.url }}/assets/dist/jquery-1.11.1.js"></script>
<script src="{{ site.url }}/assets/dist/jquery.jscroll.js"></script>
<script type="text/javascript">
// content selector is used to extract the additional items
$('.post-list').jscroll({
contentSelector: ".post-list",
nextSelector: '.next'
});
</script>