-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
55 lines (47 loc) · 1.68 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
{% extends './layout.html' %}
{% block title -%}
{% if tag %}标签 {{tag}} - {% elif cate %}分类 {{cate}} - {% endif %}{{options.title}}
{%- endblock %}
{% block headers -%}
<link rel="canonical" href="{{site_url}}/{% if tag %}tag/{{pathname}}{% elif cate %}cate/{{pathname}}{% endif %}{% if pagination.currentPage > 1 %}?page={{pagination.currentPage}}{% endif %}" />
{%- endblock %}
{% block content %}
<section id="page-index">
{% if tag %}
<h1 class="intro">标签<a href="{{site_url}}{{ctx.url}}">{{tag}}</a>下的文章</h1>
{% elif cate %}
<h1 class="intro">分类<a href="{{site_url}}{{ctx.url}}">{{cate}}</a>下的文章</h1>
{% endif %}
{% for post in posts %}
<article class="post">
<div class="post-header-box">
<div class="meta">
<div>
{% if post.user %}
<!--span class="author">
{% set user = post.user %}
{% if user.display_name %}{{user.display_name}}{% else %}{{user.name}}{% endif %}
</span>
<span>发布于</span-->
{% endif %}
<span class="date">{{think.datetime(post.create_time, 'MM月DD, YYYY')}}</span>
</div>
<!--div class="comment">
<a href="/post/{{post.pathname}}.html#comments">{{post.comment_num}} comments</a>
</div-->
</div>
<h1 class="title">
<a href="/post/{{post.pathname}}.html">{{post.title}}</a>
</h1>
</div>
<div class="entry-content">
{{post.summary | safe}}
<!--p class="more">
<a href="/post/{{post.pathname}}.html">阅读全文 »</a>
</p-->
</div>
</article>
{% endfor %}
{% include "./inc/pagination.html" %}
</section>
{% endblock %}