add tag
[linguofeng.github.com.git] / index.html
blobb344e6af424a27649e42a5cbcdebce8ab0b60f28
1 ---
2 layout: default
3 title:
4 description: 爱编程,爱音乐
5 ---
7 {% for post in site.posts limit:10 offset:0 %} <!-- 显示最新的10条日志 -->
8 <section>
9 <!-- 显示文章标题 -->
10 <div>
11 <h3><a href="{{ post.url }}">{{ post.title }}</a> <small>{{ post.date | date:"%Y-%m-%d" }}</small></h3>
12 </div>
14 <!-- 显示文章描述 -->
15 <p>{{ post.description }}</p>
17 <!-- 显示文章类别
18 {% if post.categories %}
19 <p>Category:
20 {% for category in post.categories %}
21 <a href="#">{{ category }}</a>
22 {% endfor %}
23 </p>
24 {% endif %} -->
26 <!-- 显示文章Tag
27 {% if post.tags %}
28 <p>Tag:
29 {% for tag in post.tags limit:10 offset:0 %}
30 <a href="#">{{ tag }}</a>
31 {% endfor %}
32 </p>
33 {% endif %}-->
34 </section>
35 {% endfor %}