-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblog.html
More file actions
26 lines (26 loc) · 999 Bytes
/
blog.html
File metadata and controls
26 lines (26 loc) · 999 Bytes
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
---
layout: default
title: 网志页面 · Weblog
permalink: /blog/index.html
description: ChenJun.COM的Weblog页面,更多请参见/archive.html页面。
---
<div class="posts">
<!-- This loops through the posts -->
<div class="post">
{% for post in site.posts limit:5 %}
<h1><a href="{{ post.url }}" rel="bookmark">{{ post.title }}</a></h1>
<p class="author">
<span class="date"><i class="fa fa-calendar"></i> {{ post.date | date: "%Y年%-m月%-d日" }}</span>
</p>
<div class="content">
{% if post.content contains '<!--more-->' %}
{{ post.content | split:'<!--more-->' | first }}
<p> <a href="{{ post.url }}#more" class="more-link"><span class="readmore">阅读全文 » » » </span></a></p>
{% else %}
{{ post.content | truncatehtml: 300 }}
{% endif %}
</div>
{% endfor %}
<div class="homepage-archive"><a href="/archive.html" class="btn btn-default btn-sm">More @ THE <strong>Archive</strong> Page.</a></div>
</div>
</div>