-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.html
38 lines (38 loc) · 993 Bytes
/
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
---
layout: default
---
<a class="back-btn" href="/">
<i class="fa fa-camera-retro"></i>
</a>
<article class="home-body">
<div class="container post-container">
<ul class="post-list" data-cate="all">
{% for post in paginator.posts %}
<li>
<a href="{{ site.baseurl }}{{ post.url }}">
<h2 class="post-title">{{ post.title }}</h2>
{{ post.excerpt }}
</a>
</li>
{% endfor %}
</ul>
<!-- 分类菜单内容 -->
{% for category in site.categories %}
<ul class="post-list post-cate-list" data-cate="{{category | first}}">
{% for posts in category %}
{% for post in posts %}
{% if post.url %}
<li>
<a href="{{ site.baseurl }}{{ post.url }}">
<h2 class="post-title">{{ post.title }}</h2>
{{ post.excerpt }}
</a>
</li>
{% endif %}
{% endfor %}
{% endfor %}
</ul>
{% endfor %}
</div>
</article>
{% include pagination.html %}