This repository was archived by the owner on Apr 17, 2022. It is now read-only.
generated from FromEndWorld/LOFFER
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
58 lines (51 loc) · 1.63 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
54
55
56
57
58
---
layout: default
---
{% if site.posts.size == 0 %}
<h2>No post found</h2>
{% endif %}
<div class="posts">
{% for post in paginator.posts %}
<article class="post">
<h1><a href="{{ site.url }}{{ site.baseurl }}{{ post.url | remove_first: '/' }}">{{ post.title }}</a></h1>
<div clsss="meta">
<span class="author">{{ post.author }}</span>
<span class="date">{{ post.date | date: "%Y-%m-%d" }}</span>
<ul class="tag">
{% for tag in post.tags %}
<li>
<a href="{{ site.url }}{{ site.baseurl }}tags#{{ tag }}">
{{ tag }}
</a>
</li>
{% endfor %}
</ul>
</div>
<div class="entry">
{{ post.excerpt | truncate: 200 }}
</div>
<a href="{{ site.url }}{{ site.baseurl }}{{ post.url | remove_first: '/' }}" class="read-more">Read More</a>
</article>
{% endfor %}
</div>
{%- if paginator.previous_page or paginator.next_page -%}
<div class="pagination">
{%- if paginator.previous_page -%}
<span class="prev">
<a href="{{- site.url -}}{{- site.baseurl -}}{{- paginator.previous_page_path | remove_first: '/' -}}"
class="prev">
← 上一页
</a>
</span>
{%- endif -%}
{%- if paginator.next_page -%}
<span class="next">
<a href="{{- site.url -}}{{- site.baseurl -}}{{- paginator.next_page_path | remove_first: '/' -}}" class="next">
下一页 →
</a>
</span>
{%- endif -%}
</div>
{%- else -%}
<div style="padding-top: 40px;"></div>
{%- endif -%}