-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.liquid
More file actions
243 lines (209 loc) · 7.55 KB
/
index.liquid
File metadata and controls
243 lines (209 loc) · 7.55 KB
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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="author" content="{{blog.author_display_name}}">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="http://cdn-theme.logdown.io/dream/stylesheets/screen.css">
<link rel="stylesheet" type="text/css" href="http://cdn-theme.logdown.io/dream/stylesheets/font-awesome.min.css">
<script src="http://cdn-theme.logdown.io/dream/javascripts/jquery-1.9.1.min.js"></script>
<script src="http://cdn-theme.logdown.io/dream/javascripts/menu.js"></script>
</head>
<body>
<div class="top-line"></div>
<div class="wrapper">
<header class="header">
<div class="logo">
<h1><a href="/">{{ blog.title }}</a></h1>
</div>
<span id="button"><i class="fa fa-bars"></i> Menu</span>
<nav class="nav">
<ul class="inline-list">
{% block static_page_list %}
{% block static_pages %}
<li>
<a href="{{ static_page.absolute_url }}" title="{{static_page.title}}">
<i class="icon-file"></i>
<span>{{static_page.title}}</span>
</a>
</li>
{% endblock %}
{% endblock %}
<li><a href="{{ blog.archives_url }}">Archive</a></li>
<li><a href="{{ blog.rss_url }}" target="_blank">feeds</a></li>
</ul>
</nav>
<div class="search">
<form accept-charset="UTF-8" action="{{ blog.search_posts_url }}" method="get">
<div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="✓"></div>
<input class="search-box" type="text" name="q" results="0" value="" placeholder="Search">
</form>
</div>
</header>
<div class="main-content">
{% block search_page %}
<div class="posts-search">
<section>
<h1 class="search-result-meta">
Your search for <strong>“ {{ query_string }} ”</strong> matches <strong> {{ results_count }} </strong> results:
</h1>
{% endblock %}
{% block tags_page %}
<div class="posts-search">
<section>
<h1 class="search-result-meta">
Tag: <strong>“ {{ tag_name }} ”</strong>
</h1>
{% endblock %}
{% block archives_page %}
<div class="post-container">
<h2>Blog Archive</h2>
<div class="post-content">
{% block archives %}
<h3>{{archive.year}}</h3>
<ul class="archive-list">
{% block posts %}
<li class="archive">
<span class="archive-date"><time>
{{post.published_at.short_month}}
{{post.published_at.day_of_month}}
</time></span>
<a href="{{post.absolute_url}}" class="archive-link">{{post.title}}</a>
</li>
{% endblock %}
</ul>
{% endblock %}
</div>
</div>
{% endblock %}
{% block static_page %}
<div class="post-container">
<article>
<header class="post-title">
<h1>{{static_page.title}}</h1>
</header>
<div class="post-content">
{{static_page.content}}
</div>
</article>
</div>
{% endblock %}
{% block index_page %}
<section>
<h3 class="new-posts">最新文章</h3>
{% endblock %}
{% block posts %}
<div class="post-container">
<article>
<header class="post-title">
<div class="rel-date">
{{ post.published_at.date }}
</div>
<h1>
<a href="{{post.absolute_url}}">
{% block tags_page|index_page|show_page %}
{{post.title}}
{% endblock %}
{% block search_page %}
{{ post.title | highlight: query_string }}
{% endblock %}
</a>
</h1>
</header>
<div class="post-content">
{% block search_page %}
{{ post.content | search_content: query_string }}
{% endblock %}
{% block index_page|tags_page %}
{{ post.excerpt_content }}
{% block readmore %}
<a href="{{post.absolute_url}}" class="more">Read on →</a>
{% endblock %}
{% endblock %}
{% block show_page %}
{{ post.content }}
<div class="social-share group">
<div class="pull-right">
{% block facebook_sharing %}
<div class="fb-like" data-href="{{post.absolute_url}}" data-layout="button_count" data-send="false" data-show-faces="false" data-width="90"></div>
{% endblock %}
</div>
<a href="#" style="dispaly:none; border-bottom:none;"> </a>
{% block twitter_sharing %}
<a href="https://twitter.com/share?" class="twitter-share-button">Tweet</a>
{% endblock %}
{% block google_plus_sharing %}
<div class="g-plusone" data-size="medium"></div>
{% endblock %}
</div>
{% block tag_list %}
<footer>
<div class="tags">Tags:
{% block tags %}
<a href="{{tag.url}}">{{tag.name}}</a>,
{% endblock %}
</div>
</footer>
{% endblock %}
{% endblock %}
</div>
</article>
<div style="clear: both;"> </div>
{% block show_page %}
{% block disqus %}
{% disqus %}
{% endblock %}
{% endblock %}
</div>
{% endblock %}
{% block index_page %}
</section>
{% endblock %}
{% block tags_page %}
</section>
{% endblock %}
{% block search_page %}
</section>
{% endblock %}
{% block pagination %}
<div class="pagination pagination-centered">
<ul>
{% block previous_page %}
<li class="prev previous_page ">
<a href="{{previous_page_url}}">Previous</a>
</li>
{% endblock %}
{% block jump_pagination %}
{% block current_page %}
<li class="active">
<a href="#">{{page_number}}</a>
</li>
{% endblock %}
{% block page_gap %}
<li class="disabled">
<a href="#"><span class="gap">…</span></a>
</li>
{% endblock %}
{% block jump_page %}
<li>
<a href="{{page_url}}">{{page_number}}</a>
</li>
{% endblock %}
{% endblock %}
{% block next_page %}
<li class="next next_page ">
<a href="{{next_page_url}}">Next</a>
</li>
{% endblock %}
</ul>
</div>
{% endblock %}
</div>
<footer class="footer">
<p>
<span>Copyright © 2014 {{ blog.user_name }} . </span> Powered by <a href="http://logdown.com/">Logdown</a>.<br /> This theme is designed by <a href="http://blog.cgmlife.net/">Kevin</a>
</p>
</footer>
</div>
</body>
</html>