-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
35 lines (28 loc) · 1.28 KB
/
index.html
File metadata and controls
35 lines (28 loc) · 1.28 KB
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
---
layout: default
---
{%- if site.posts.size > 0 -%}
<ul class="post-header">
{%- for post in paginator.posts -%}
<h1>
<a class="post-header" href="{{ post.url | relative_url }}">{{ post.title }}</a>
</h1>
{%- assign date_format = site.date_format | default: "%b %-d, %Y" -%}
<div class="post-meta">
<time datetime="{{ post.date | date_to_xmlschema }}" itemprop="datePublished">{{ post.date | date: "%Y-%m-%d" }}</time>
{%- if post.last_modified_at -%}
(最近更新:<time datetime="{{ post.last_modified_at | date_to_xmlschema }}" itemprop="datePublished">{{ post.last_modified_at | date: "%Y-%m-%d" }}</time>)
{%- endif -%}
</div>
<p>{{ post.excerpt }}</p>
{%- endfor -%}
</ul>
{%- endif -%}
<div class="pagination">
{%- if paginator.next_page -%}
<span class="next"><a class="paginator" href="{{ paginator.next_page_path }}"> ← 较早的文章</a></span>
{%- endif -%}
{%- if paginator.previous_page -%}
<span class="previous"><a class="paginator" href="{{ paginator.previous_page_path }}">较近的文章 →</a></span>
{%- endif -%}
</div>