-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
177 lines (168 loc) · 7.06 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
---
layout: default
title: The Blog
---
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span
class="sr-only">Close</span></button>
<h4 class="modal-title" id="myModalLabel">
<i class="fa fa-leaf"></i>
Summary
</h4>
</div>
<div class="modal-body">
<p> I'm a currently an IT student.</p>
<p> Usually, I like researching about algorithms and new programming languages in my free time.
Sometimes, I will also crawl websites for interests or collecting useful data.
In this blog, I will summarize my personal experience, what I have done as well as how I solve
difficult problems. I hope this blog may be helpful for solving problems and recording useful
programming templates and language characteristics.
</p>
<p>
And I will make some blogs about <a href="http://en.wikipedia.org/wiki/Wu_Chinese" target="_blank">吳語</a>,
a very
beautiful language spoken in Shanghai, Jiangsu province and Zhejiang province. It is a traditional
language with long history.
</p>
</div>
</div>
</div>
</div>
<h1 class="page-title">Posts & Shots</h1>
<div class="row" style="margin-top: 20px" data-ng-controller="boardController">
<div class="col-md-12">
<div class="row post-row">
<!-- post preview -->
{% assign acc = 0 %}
{% for post in paginator.posts %}
{% assign res = acc | modulo: 3 %}
{% if res < 1 and acc != 0 %}
</div>
<div class="row post-row">
{% endif %}
{% capture acc %}{{ acc | plus:1 }}{% endcapture %}
{% if post.layout == 'shot' %}
<!--<div class="col-md-4 col-sm-12 shot-i post-i" hover-class="flipped">-->
<div class="col-md-4 col-sm-12" data-hover-class="flipped">
<div class="shot-i card front" {% if post.lang %} lang="{{post.lang}}" {% endif %}>
<h4 class="post-title">
{{ post.shotContent }}
</h4>
<p>
{% capture infotext %}{{ post.infotext }}{% endcapture %}
{% if infotext.size == 0 %}
Take a shot of tequila!
{% else %}
{{ infotext }}
{% endif %}
</p>
</div>
<div class="shot-i card back" {% if post.lang %} lang="{{post.lang}}" {% endif %}>
<h4 class="post-title">
{{ post.shotContent }}
</h4>
<p>
{% capture infotext %}{{ post.infotext }}{% endcapture %}
{% if infotext.size == 0 %}
Take a shot of tequila!
{% else %}
{{ infotext }}
{% endif %}
</p>
</div>
</div>
{% else %}
<a href="{{ post.url }}" style="display: block">
<!--<div class="col-md-4 col-sm-12 post-i" hover-class="flipped">-->
<div class="col-md-4 col-sm-12" hover-class="flipped">
<div class="post-i card front" {% if post.lang %} lang="{{post.lang}}" {% endif %}>
<h4 class="post-title">{{post.title}}</h4>
<p>
{% capture infotext %}{{ post.infotext }}{% endcapture %}
{% if infotext.size == 0 %}
Take a shot of tequila!
{% else %}
{{ infotext }}
{% endif %}
</p>
</div>
<div class="post-i card back" {% if post.lang %} lang="{{post.lang}}" {% endif %}>
<h4 class="post-title">{{post.title}}</h4>
<p>
{% capture infotext %}{{ post.infotext }}{% endcapture %}
{% if infotext.size == 0 %}
Take a shot of tequila!
{% else %}
{{ infotext }}
{% endif %}
</p>
</div>
</div>
</a>
{% endif %}
{% endfor %}
</div>
</div>
</div>
<div class="row">
<!-- pagination section -->
<div style="text-align:center;">
<ul class="pagination pagination-lg">
<!-- first page link -->
{% if paginator.previous_page %}
<li>
<a href="/index.html"><i class="fa fa-angle-double-left fa-lg"></i> </a>
</li>
{% else %}
<li class="disabled">
<a href="#"><i class="fa fa-angle-double-left fa-lg"></i> </a>
</li>
{% endif %}
<!-- previous page link -->
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<li>
<a href="/index.html"><i class="fa fa-angle-left fa-lg"></i> </a>
</li>
{% else %}
<li>
<a href="/page{{paginator.previous_page}}"><i class="fa fa-angle-left fa-lg"></i> </a>
</li>
{% endif %}
{% else %}
<li class="disabled">
<a href="#"><i class="fa fa-angle-left fa-lg"></i></a>
</li>
{% endif %}
<!-- current page -->
<li class="active">
<span class="page_number ">{{paginator.page}} /
{{paginator.total_pages}}</span>
</li>
<!-- next page link -->
{% if paginator.next_page %}
<li>
<a href="/page{{paginator.next_page}}"><i class="fa fa-angle-right fa-lg"></i> </a>
</li>
{% else %}
<li class="disabled">
<a href="#"><i class="fa fa-angle-right fa-lg"></i> </a>
</li>
{% endif %}
<!-- last page link -->
{% if paginator.next_page %}
<li>
<a href="/page{{ paginator.total_pages }}"><i class="fa fa-angle-double-right fa-lg"></i> </a>
</li>
{% else %}
<li class="disabled">
<a href="#"><i class="fa fa-angle-double-right fa-lg"></i> </a>
</li>
{% endif %}
</ul>
</div>
</div>