forked from pigerla/pigerla.github.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
41 lines (41 loc) · 1.34 KB
/
index.html
File metadata and controls
41 lines (41 loc) · 1.34 KB
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
35
36
37
38
39
40
41
---
layout: page
title: Spy
tagline: Supporting tagline
---
<!-- 使用jekyll语法,作用是获取文章数,自动地展示文章-->
{% for post in site.posts %}
<div class="post w">
<div class="fl pt10 pr10 mr15 tr post-left">
<!-- 左侧的显示时间 -->
<div class="post-date pt10 tc">
<!--获取文章的“日”,格式为 date: "%d" -->
{{ post.date | date: "%d" }}
<!--获取文章的“月 年”,格式为 date: "%b %Y" 其中%b表示缩写月份,大写月份为%B -->
<span class="f16">{{ post.date | date: "%b %Y" }}</span>
</div>
</div>
<div class="post-right pr">
<h1 id="post-title">
<!-- 文章的大标题显示 -->
<a class="no_unl" href="{{ BASE_PATH }}{{ post.url }}">{{ post.title }}</a>
</h1>
<!-- 文章作者 -->
<h6><small>By</small><b class="pl5">{{ page.title }}</b><small class="post-date-right"><span class="pl10 pr10">|</span>{{ post.date | date: "%Y-%m-%d" }}</small></h6>
<div class="the-content">
<!-- 文章缩图显示 -->
<div class="fl">
</div>
<!-- 文章摘要显示 -->
<div class="post-overview-right">
<p>
{{ post.content | | split:'<!--break-->' | first }}
</p>
</div>
</div>
</div>
<div class="clearfix">
<a class="fr" href="{{ BASE_PATH }}{{ post.url }}">全文阅读 »</a>
</div>
</div>
{% endfor %}