Skip to content

Commit 2214344

Browse files
committed
增加Recent post in landing page
1 parent e92c3b0 commit 2214344

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

_includes/index_head.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@
2121
white-space: -o-pre-wrap; /*Opera7*/
2222
word-wrap: break-word; /*InternetExplorer5.5+*/
2323
}
24+
div.poem{
25+
width:1.5em;
26+
line-height:1em;
27+
float:left;
28+
font:bold 24px/28px KaiTi;
29+
}
30+
2431
</style>
2532

2633
<!-- Main scripts -->

_includes/sections/blog.html

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,36 @@
22
<div class="row">
33
<div class="col-lg-12 text-center wow zoomIn" id="i18_blog">
44
<div style="height: 80px;"></div>
5-
<a class="btn btn-lg btn-default btn-rounded btn-outline wow bounceIn" href="{{ "/work/" | prepend: site.baseurl }}"><span data-i18n="blog.my_blog">{{ blog.name }}</span></a>
5+
<a class="btn btn-lg btn-default btn-rounded btn-outline wow bounceIn" href="{{ "/blog/" | prepend: site.baseurl }}"><span data-i18n="blog.my_blog">{{ blog.name }}</span></a>
66
<div style="height: 80px;"></div>
77
</div>
8+
</div>
9+
<div style="width:50%; height: 500px; float:left;">
10+
<article style="padding: 100px 120px;">
11+
<!-- <div class="poem" style="font-size: 42px;" >江雪</div>
12+
<div class="poem" style="font-size: 28px;"><a href="https://zh.wikipedia.org/wiki/%E8%8B%8F%E8%BD%BC">柳宗元</a></div> -->
13+
<div></div>
14+
<div class="poem">千山🕊飞绝</div>
15+
<div class="poem">万径人踪灭</div>
16+
<div></div>
17+
<div class="poem">孤舟蓑笠翁</div>
18+
<div class="poem">独钓寒江雪</div>
19+
</article>
820
</div>
21+
<div class="row" style="width:50%; height: 500px; float:left;">
22+
<div class="col-lg-12 wow zoomIn" id="i18_blog">
23+
<h1>Latest Post</h1>
24+
<ul class="entries">
25+
{% for post in site.posts limit:5 %}
26+
<li>
27+
<a href="{{ post.url }}">
28+
<h3>{{ post.title }}</h3>
29+
<p class="blogdate">{{ post.date | date: "%d %B %Y" }}</p>
30+
<!-- <div>{{ post.content |truncatehtml | truncatewords: 60 }}</div> -->
31+
</a>
32+
</li>
33+
{% endfor %}
34+
</ul>
35+
</div>
36+
</div>
937
</div>

0 commit comments

Comments
 (0)