-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
36 lines (36 loc) · 1.33 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
---
layout: default
title:
---
<!--<h2 class="first_title"><a href="{{ site:url }}/code/">*.* 查看我的代码 ***</a></h2>
<p class="posted_info">全部是自己的东西,算是一种记录。如果觉得对你有点用,可以随便使用,如果觉得不好或很差,还希望能给于一定的指导</p>
-->
<div class="news">
<h3>日志数({{ paginator.total_posts}})</h3>
{% for post in paginator.posts %}
<div class="index_lists radius">
<h4><cite>[{{ post.date | date:"%Y-%m-%d" }}]</cite><a href="{{ site:url }}{{ post.url }}" target="_blank">{{post.title}}</a></h4>
<div class="index_des">
<div class="index_img">
{% if post.img %}
<img src="{{ site:url }}/images/{{ post.img }}" alt="" />
{% endif %}
</div>
{{ post.description }}
<div class="blank10"></div>
</div>
</div>
{% endfor %}
<div class="index_page">
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
« <a href="{{ site:url }}/" class="page">Previous</a>
{% else %}
« <a href="{{ site:url }}/page{{ paginator.previous_page }}" class="page">Previous</a>
{% endif %}
{% endif %}
{% if paginator.next_page %}
<a href="{{ site:url }}/page{{ paginator.next_page }}" class="page">Next</a> »
{% endif %}
</div>
</div>