-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
34 lines (32 loc) · 1.3 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
---
layout: default
title:
description: 记录生活点滴,积累沉淀...
keywords: besteric, Jekyll, Xbox, Game, Skateboard, Running, Front-end, geek
isIndex: true
---
{% for rpost in paginator.posts %}
<article class="main-article">
<div class="violet-post">
<h3 class="main-article-title"><a href="{{ rpost.url }}" title="{{ rpost.title }}" rel="bookmark">{{ rpost.title }}</a></h3>
<p class="main-article-meta"><time pubdate="{{ rpost.date | date_to_utc | date: '%Y-%m-%d' }}">{{ rpost.date | date_to_utc | date: "%Y-%m-%d" }}</time></p>
<div class="main-article-contant">
<p>{{ rpost.description }}</p>
<p class="main-article-more"><a href="{{ rpost.url }}" title="Read More" rel="nofollow">Read More</a></p>
</div>
</div>
</article>
{% endfor %}
{% if paginator.total_pages > 1 %}
<nav class="pagination fn-clear" id="violet-paging">
<ul class="pagination-list">
{% for page in (1..paginator.total_pages) %}
{% if page == paginator.page %}
<li class="current"><a href="javascript:void(0);">{{ page }}</a></li>
{% else %}
<li><a href="{{ site.url }}/{%if page > 1 %}page{{ page }}/{% endif %}">{{ page }}</a></li>
{% endif %}
{% endfor %}
</ul>
</nav>
{% endif %}