File tree 3 files changed +15
-11
lines changed
3 files changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -11,20 +11,22 @@ <h2>{{ page.title }}</h2>
11
11
< section class ="meta ">
12
12
< span class ="time ">
13
13
< time datetime ="{{ page.date | date: "%Y-%m-%d " }}"> {{ page.date | date:"%Y-%m-%d" }}</ time >
14
- </ span >
15
- < span > 作者: {{ page.author }} </ span >
16
- {% if page.category %}
14
+ </ span >
15
+ < span > 作者: {{ page.author }}</ span >
16
+ {% if page.categories %}
17
17
< span class ="categories ">
18
+ < span > 分类:</ span >
18
19
{% for category in page.categories %}
19
- < a href ="/categories#{{ category }}-ref " title ="{{ category }} "> # {{ category }}</ a >
20
+ < a href ="/categories#{{ category }}-ref " title ="{{ category }} "> {{ category }}</ a >
20
21
{% endfor %}
21
22
</ span >
22
23
{% endif %}
23
24
24
25
{% if page.tags %}
25
26
< span class ="tags ">
27
+ < span > 标签:</ span >
26
28
{% for tag in page.tags %}
27
- < a href ="/tags.html#{{ tag }} " title ="{{ tag }} "> # {{ tag }}</ a >
29
+ < a href ="/tags.html#{{ tag }} " title ="{{ tag }} "> {{ tag }}</ a >
28
30
{% endfor %}
29
31
</ span >
30
32
{% endif %}
Original file line number Diff line number Diff line change 2
2
layout: default
3
3
title: 文章分类
4
4
header: Posts By Category
5
- permalink: /categories/
5
+ permalink: /categories
6
6
group: navigation
7
7
---
8
8
{% include JB/setup %}
Original file line number Diff line number Diff line change @@ -14,19 +14,21 @@ <h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
14
14
< span class ="time ">
15
15
< time datetime ="{{ post.date | date: "%Y-%m-%d " }}"> {{ post.date | date:"%Y-%m-%d" }}</ time >
16
16
</ span >
17
- < span > 作者:{{ page .author }}</ span >
18
- {% if page.category %}
17
+ < span > 作者:{{ post .author }}</ span >
18
+ {% if post.categories %}
19
19
< span class ="categories ">
20
- {% for category in page.categories %}
21
- < a href ="/categories#{{ category }}-ref " title ="{{ category }} "> #{{ category }}</ a >
20
+ < span > 分类:</ span >
21
+ {% for category in post.categories %}
22
+ < a href ="/categories#{{ category }}-ref " title ="{{ category }} "> {{ category }}</ a >
22
23
{% endfor %}
23
24
</ span >
24
25
{% endif %}
25
26
26
27
{% if post.tags %}
27
28
< span class ="tags ">
29
+ < span > 标签:</ span >
28
30
{% for tag in post.tags %}
29
- < a href ="/tags.html#{{ tag }} " title ="{{ tag }} "> # {{ tag }}</ a >
31
+ < a href ="/tags.html#{{ tag }} " title ="{{ tag }} "> {{ tag }}</ a >
30
32
{% endfor %}
31
33
</ span >
32
34
{% endif %}
You can’t perform that action at this time.
0 commit comments