-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
36 lines (33 loc) · 1.4 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
---
layout: page
title: Homepage
tags: [blog, development, java, go, python]
notoc: true
---
{% for post in paginator.posts %}
<div class="post">
<div class="post-title">
<a href="{{ post.url }}" title="到《{{ post.title }}》的永久链接">{{ post.title }}</a>
</div>
<div class="post-info">
<span> {{ post.date | date: "%Y-%m-%d" }} | 标签: {% for tag in post.tags %}<a href="/blog/tags#{{ tag }}" rel="tag">{{ tag }}</a>{% if forloop.last == false %}, {% endif %}{% endfor %}{%if post.update%} | 更新: {{ post.update}}{% endif%}</span>
</div>
<div class="entry">
<p>{{ post.summary }}</p>
</div>
<div> 分类: {% for cat in post.categories %}<a href="/blog/categories#{{ cat }}" rel="category tag">{{ cat }}</a>{% if forloop.last == false %}, {% endif %}{% endfor %} | <a href="{{ post.url }}#disqus_thread">评论</a></div>
</div>
{% if forloop.last == false %}<hr/>{% endif %}
{% endfor %}
<ul class="pagination">
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<li class="page-item mr-auto"><a href="/" class="page-link">« Previous</a></li>
{% else %}
<li class="page-item mr-auto"><a href="/blog/page/{{ paginator.previous_page }}" class="page-link">« Previous</a></li>
{% endif %}
{% endif %}
{% if paginator.next_page %}
<li class="page-item ml-auto"><a href="/blog/page/{{ paginator.next_page }}" class="page-link ">Next »</a></li>
{% endif %}
</ul>