-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
23 lines (23 loc) · 1 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---
layout: default
---
{% for post in site.posts %}
<div class="blog-post">
<div class="blog-post-title">
<a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
</div>
<p class="blog-post-meta">{{ post.author }} 发表于 {{ post.date|date: "%b %-d, %Y" }}
{% for tag in post.tags %}
<a href="/tags#{{tag}}" class="label label-default"><span class="glyphicon glyphicon-tag"></span>{{tag}}</a>
{% endfor %}
<span class="glyphicon glyphicon-folder-close" aria-hidden="true"></span> <a href="/categories#{{ post.category }}">{{ post.category }}</a>
</p>
{{ post.excerpt }}
<!-- Whether or not to display the "read more" button -->
{% capture content_words %}{{ post.content | number_of_words }}{% endcapture %}
{% capture excerpt_words %}{{ post.excerpt | number_of_words }}{% endcapture %}
{% if excerpt_words != content_words %}
<a href="{{ post.url }}" style="color: #4184F3">...Read More</a>
{% endif %}
</div>
{% endfor %}