Skip to content

Commit 6b511b1

Browse files
committed
update
1 parent 9367a90 commit 6b511b1

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

_includes/themes/sext-v/post.html

+9
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,16 @@ <h2>{{ page.title }}</h2>
1111
<section class="meta">
1212
<span class="time">
1313
<time datetime="{{ page.date | date:"%Y-%m-%d" }}">{{ page.date | date:"%Y-%m-%d" }}</time>
14+
</span> &nbsp;
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 %}
1421
</span>
22+
{% endif %}
23+
1524
{% if page.tags %}
1625
<span class="tags">
1726
{% for tag in page.tags %}

index.html

+10-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<div>
77
<ul class="listing">
8-
{% for post in site.posts limit: 10 %}
8+
{% for post in site.posts limit: 5 %}
99
<article class="content">
1010
<section class="title">
1111
<h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
@@ -14,6 +14,15 @@ <h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
1414
<span class="time">
1515
<time datetime="{{ post.date | date:"%Y-%m-%d" }}">{{ post.date | date:"%Y-%m-%d" }}</time>
1616
</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+
1726
{% if post.tags %}
1827
<span class="tags">
1928
{% for tag in post.tags %}

0 commit comments

Comments
 (0)