-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
53 lines (47 loc) · 1.68 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
---
<div class="home">
<ul class="post-list">
{% for post in paginator.posts %}
<li>
<header class="post-header">
<h1 class="post-title">
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}" onclick="trackViewArticle(EVENT_LABEL_HOME)">{{ post.title }}</a>
</h1>
<p class="post-meta">
{{ post.date | date: "%b %-d, %Y" }}
</p>
</header>
{{ post.excerpt }}
<a class="post-link post-readmore" href="{{ post.url | prepend: site.baseurl }}" onclick="trackViewArticle(EVENT_LABEL_HOME)">
<p>(閱讀全文...)</p>
</a>
{% if post.tags.size > 0 %}
<p class="post-meta">
<i class="fa fa-tags" aria-hidden="true"></i>
{% for tag in post.tags %}
<a class="post-tag" href="/tags/#{{ tag | slugify }}" onclick="trackViewArticleList(EVENT_LABEL_HOME)">{{ tag }}</a>
{% endfor }%}
</p>
{% endif %}
</li>
{% endfor %}
</ul>
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path }}" onclick="trackViewArticleList(EVENT_LABEL_HOME_PAGINATION)">
上一頁
</a>
{% endif %}
<span class="page_number">
Page: {{ paginator.page }} of {{ paginator.total_pages }}
</span>
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path }}" onclick="trackViewArticleList(EVENT_LABEL_HOME_PAGINATION)">
下一頁
</a>
{% endif %}
</div>
<!-- <p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | prepend: site.baseurl }}">via RSS</a></p> -->
</div>