File tree 2 files changed +19
-1
lines changed
2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,16 @@ <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 %}
17
+ < span class ="categories ">
18
+ {% for category in page.categories %}
19
+ < a href ="/categories#{{ category }}-ref " title ="{{ category }} "> #{{ category }}</ a >
20
+ {% endfor %}
14
21
</ span >
22
+ {% endif %}
23
+
15
24
{% if page.tags %}
16
25
< span class ="tags ">
17
26
{% for tag in page.tags %}
Original file line number Diff line number Diff line change 5
5
6
6
< div >
7
7
< ul class ="listing ">
8
- {% for post in site.posts limit: 10 %}
8
+ {% for post in site.posts limit: 5 %}
9
9
< article class ="content ">
10
10
< section class ="title ">
11
11
< h2 > < a href ="{{ post.url }} "> {{ post.title }}</ a > </ h2 >
@@ -14,6 +14,15 @@ <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 %}
19
+ < span class ="categories ">
20
+ {% for category in page.categories %}
21
+ < a href ="/categories#{{ category }}-ref " title ="{{ category }} "> #{{ category }}</ a >
22
+ {% endfor %}
23
+ </ span >
24
+ {% endif %}
25
+
17
26
{% if post.tags %}
18
27
< span class ="tags ">
19
28
{% for tag in post.tags %}
You can’t perform that action at this time.
0 commit comments