-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathindex.html
executable file
·38 lines (33 loc) · 1.65 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
---
layout: default
---
<div class="main-post-list hidden">
<ol class="post-list">
<!--置顶-->
{% for post in site.posts %}
{% if post.istop %}
{% if paginator.page == 1 %}
<li>
<h2 class="post-list__post-title post-title"><a href="{{ post.url }}" title="访问 {{ post.title }}">[置顶]{{ post.title }}</a></h2>
<p class="excerpt">{{ post.content | strip_html | strip_newlines | truncate: 260 }}…</p>
<div class="post-list__meta"><time datetime="{{post.date | date: date_to_xmlschema}}" class="post-list__meta--date date">{{ post.date | date: "%F"}}</time> • <span class="post-list__meta--tags tags">{{ post.category }}</span> <a class="btn-border-small" href={{ post.url }}>继续阅读</a></div>
<hr class="post-list__divider" />
</li>
{% endif %}
{% endif %}
{% endfor %}
<!--普通文档流-->
{% for post in paginator.posts %}
{% if post.hide %}
{% else %}
<li>
<h2 class="post-list__post-title post-title"><a href="{{ post.url }}" title="访问 {{ post.title }}">{{ post.title }}</a></h2>
<p class="excerpt">{{ post.content | strip_html | strip_newlines | truncate: 260 }}…</p>
<div class="post-list__meta"><time datetime="{{post.date | date: date_to_xmlschema}}" class="post-list__meta--date date">{{ post.date | date: "%F"}}</time> • <span class="post-list__meta--tags tags">{{ post.category }}</span> <a class="btn-border-small" href={{ post.url }}>继续阅读</a></div>
<hr class="post-list__divider" />
</li>
{% endif %}
{% endfor %}
</ol>
{% include pagination.html %}
</div>