-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
50 lines (39 loc) · 1.01 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
layout: default
title: Home
---
<div class="page">
<header>
<h1 class="landing-title">Hello, It's Gavin!</h1>
</header>
<div class="text-center">
<p>
<span style="font-size: 3em; font-weight: bold;">G</span>
</p>
<p>
这里记录学习心得,分享一些感悟.
</p>
<p>
如果没有恐惧,你会怎么做? - Sheryl Sandberg
</p>
</div>
</div>
<h2>The newest post:</h2>
<!-- 最新文章 -->
{% assign latest_post = site.posts.first %}
{% if latest_post %}
<article class="post-preview">
<h2 class="post-title">
<a href="{{ site.baseurl }}{{ latest_post.url }}">
{{ latest_post.title }}
</a>
</h2>
<p class="post-meta">{{ latest_post.date | date: "%d %b %Y" }}</p>
<div class="post-excerpt">
{{ latest_post.excerpt | strip_html | truncatewords: 50 }}
</div>
<a href="{{ site.baseurl }}{{ latest_post.url }}" class="read-more">Read more</a>
</article>
{% else %}
<p>暂无文章</p>
{% endif %}