-
Notifications
You must be signed in to change notification settings - Fork 0
/
blog.html
34 lines (32 loc) · 1.15 KB
/
blog.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
layout: page
title: 精选文章
---
<div class="info-list"> <ul class="list-a">
{% for post in site.posts %}
{% if post.star %}
<li><div class="only-info">
<div class="art-img"><a href="{{ post.url }}">
{% if post.thumb %}
<img width="100%" src="{{ site.cdn }}{{ post.thumb }}" alt="{{post.title}}">
{% else %}
<img width="100%" src="{{ site.cdn }}{{ site.thumb }}" alt="{{post.title}}">
{% endif %}
</a></div>
</div>
<div class="rt-tit-box">
<h3><a href="{{ post.url }}">{{ post.title }}</a>
<sup><small>
{% if post.origin %}
<span class="origin"> 原创 </span>
{% endif %}
</small></sup>
</h3>
<div class="vice"><span class="v_date">{{ post.date | date: "%Y-%m-%d" }}</span><span>{{ post.excerpt | strip_html | strip_newlines | truncate:130 }}</span></div>
</div></li>
{% endif %}
{% endfor %}
</ul></div>
<h2>全部文章</h2>
<h3><a href="{{ site.url -}}/tags"> <<<查看全部标签 </a>
◆ <a href="{{ site.url -}}/titles"> 查看全部文章>>> </a></h3>