forked from Lingggd/Lingggd.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (49 loc) · 1.68 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
49
50
51
---
layout: default
---
<!-- article -->
{% for post in site.posts limit:10 %}
<article class="article">
<h2 class="article__title">
<a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
<time datetime="{{ post.date | date: "%Y-%m-%d" }}">{{ post.date | date: "%b %-d, %Y" }}</time>
</h2>
{% if post.cover_display %}
<a class="article__cover_thumbnail" href="{{ post.url | prepend: site.baseurl }}">
<div class="article_cover_image">
<div style="background-image:url('{{ post.cover }}')"></div>
</div>
<div class="article_cover_desc">
<p class="article__excerpt">
{% if post.description %}
{{ post.description | truncate: 100 }}
{% else %}
{% endif %}
</p>
</div>
</a>
{% else %}
<p class="article__excerpt">
{% if post.description %}
{{ post.description }}
{% else %}
{% endif %}
</p>
{% endif %}
</article>
{% endfor %}
<!-- / article -->
<span class="article__align-right">
<a href="/archive/">more</a>
</span>
<!-- <nav class="blocks blocks--space">
<div class="blocks__item">
{% if paginator.previous_page %}<a href="{{ paginator.previous_page_path }}">Previous</a>{% endif %}
</div>
<div class="blocks__item">
Page: {{ paginator.page }} of {{ paginator.total_pages }}
</div>
<div class="blocks__item">
{% if paginator.next_page %}<a href="{{ paginator.next_page_path }}">Next</a>{% endif %}
</div>
</nav> -->