-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
108 lines (93 loc) · 2.55 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
---
layout: page
tagline:
title: bughoho 全栈研究
description: "bughoho 全栈研究,个人博客"
keywords: 编程,C++,逆向,脱壳,破解,网站,编译原理,反编译,虚拟机,VMP
---
<ul class="pager">
{% if paginator.previous_page %}
<li class="previous">
{% if paginator.previous_page == 1 %}
<a href="{{ site.BASE_PATH }}/">← Newer</a>
{% else %}
<a href="{{ site.BASE_PATH }}/{{ site.paginate_path | replace: ':num', paginator.previous_page }}">← Newer</a>
{% endif %}
</li>
{% else %}
<li class="previous disabled">
<a>← Newer</a>
</li>
{% endif %}
<li class="hidden-xs">
<span class="page_number">Page: {{ paginator.page }} of {{ paginator.total_pages }}</span>
</li>
{% if paginator.next_page %}
<li class="next">
<a href="{{ site.BASE_PATH }}/{{ site.paginate_path | replace: ':num', paginator.next_page }}">Older →</a>
</li>
{% else %}
<li class="next disabled">
<a>Older →</a>
</li>
{% endif %}
</ul>
{% for post in paginator.posts %}
<article class="home">
<small>
{% assign d = post.date | date: "%d" | plus:'0' %}
{{ post.date | date: "%B" }}
{% case d %}
{% when 1 or 21 or 31 %}{{ d }}st,
{% when 2 or 22 %}{{ d }}nd,
{% when 3 or 23 %}{{ d }}rd,
{% else %}{{ d }}th,
{% endcase %}
{{ post.date | date: "%Y" }}
</small>
<h2>
<a href="{{ site.BASE_PATH }}{{ post.url }}">{{ post.title }}</a>
</h2>
<p>
{% if post.fullview %}
{{ post.content }}
{% else %}
{% if post.shortinfo %}
{{ post.shortinfo }}
{% elsif post.description %}
{{ post.description }}
{% else %}
{{ post.excerpt }}
{% endif %}
{% endif %}
</p>
</article>
{% endfor %}
<hr/>
<ul class="pager">
{% if paginator.previous_page %}
<li class="previous">
{% if paginator.previous_page == 1 %}
<a href="{{ site.BASE_PATH }}/">← Newer</a>
{% else %}
<a href="{{ site.BASE_PATH }}/{{ site.paginate_path | replace: ':num', paginator.previous_page }}">← Newer</a>
{% endif %}
</li>
{% else %}
<li class="previous disabled">
<a>← Newer</a>
</li>
{% endif %}
<li class="hidden-xs">
<span class="page_number">Page: {{ paginator.page }} of {{ paginator.total_pages }}</span>
</li>
{% if paginator.next_page %}
<li class="next">
<a href="{{ site.BASE_PATH }}/{{ site.paginate_path | replace: ':num', paginator.next_page }}">Older →</a>
</li>
{% else %}
<li class="next disabled">
<a>Older →</a>
</li>
{% endif %}
</ul>