Skip to content

Commit 338de8a

Browse files
author
songgl
committed
tags测试
1 parent 670bb31 commit 338de8a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,16 @@ <h2>{{ page.title }}</h2>
1515

1616
{% endfor %}
1717
</ul>
18+
<p>Tags</p>
19+
20+
{% for tag in site.tags %}
21+
<div id="{{tag[0]}}" name="{{tag[0]}}">
22+
<h1>{{tag[0]}}</h1>
23+
</div>
24+
{% for post in tag[1] %}
25+
<div class="article">
26+
<span class="datetime">{{ post.date | date:"%Y-%m-%d" }} </span>
27+
<a href="{{ post.url }}">{{ post.title }}</a>
28+
</div>
29+
{% endfor %}
30+
{% endfor %}

0 commit comments

Comments
 (0)