-
Notifications
You must be signed in to change notification settings - Fork 80
/
Copy pathindex.hbs
369 lines (359 loc) · 16.3 KB
/
index.hbs
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
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
{{#if base_url}}
<base href="{{base_url}}" />
{{else}}
<base href="{{home_url}}" />
{{/if}}
<title>{{title}}{{#if site_name}} - {{site_name}}{{/if}}</title>
<link rel="canonical" href="{{url}}">
{{#if keywords}}
<meta name="keywords" content="{{keywords}}">
{{/if}}
{{#if description}}
<meta name="description" content="{{description}}">
{{/if}}
{{#if shortcut_icon}}
<link rel="shortcut icon" href="{{shortcut_icon}}">
{{/if}}
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Arimo:400,700,400italic">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/pzwd-net/webstack-assets@main/css/fonts/linecons/css/linecons.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/pzwd-net/webstack-assets@main/css/fonts/fontawesome/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/pzwd-net/webstack-assets@main/css/bootstrap.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/pzwd-net/webstack-assets@main/css/xenon-core.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/pzwd-net/webstack-assets@main/css/xenon-components.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/pzwd-net/webstack-assets@main/css/xenon-skins.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/pzwd-net/webstack-assets@main/css/nav.css">
<script src="https://cdn.jsdelivr.net/gh/pzwd-net/webstack-assets@main/js/jquery-1.11.1.min.js"></script>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- FB Open Graph -->
<meta property="og:type" content="article">
{{#if url}}
<meta property="og:url" content="{{url}}">
{{/if}}
<meta property="og:title" content="{{title}}{{#if site_name}} - {{site_name}}{{/if}}">
{{#if description}}
<meta property="og:description" content="{{description}}">
{{/if}}
{{#if og_img}}
<meta property="og:image" content="{{og_img}}">
{{/if}}
<meta property="og:site_name" content="{{#if site_name}}{{site_name}}{{else}}{{title}}{{/if}}">
<!-- Twitter Cards -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="{{title}}{{#if site_name}} - {{site_name}}{{/if}}">
{{#if description}}
<meta name="twitter:description" content="{{description}}">
{{/if}}
{{#if og_img}}
<meta name="twitter:image" content="{{og_img}}">
{{/if}}
<style>
.logo h1{font-size: 20px; color: #fff}
.user-info-navbar .user-info-menu>li.hover-line.active:before {
display: block
}
.user-info-navbar .user-info-menu>li.hover-line.active>a {
color: #606161
}
@media screen and (max-width:768px) {
.page-container .sidebar-menu.fixed{
position: fixed;
z-index: 10000;
}
.page-container .header-placeholder {
height: {{#if logo}}81{{else}}63{{/if}}px;
}
.logo h1{margin-top: 0px; margin-bottom: 0px}
}
</style>
</head>
<body class="page-body">
<!-- skin-white -->
<div class="page-container">
<div class="sidebar-menu toggle-others fixed">
<div class="sidebar-menu-inner">
<header class="logo-env">
<!-- logo -->
<div class="logo">
<a href="{{home_url}}" class="logo-expanded">
{{#if logo}}<img src="{{logo}}" width="100%" alt="{{title}}" />{{else}}<h1>{{#if site_name}}{{site_name}}{{else}}{{title}}{{/if}}</h1>{{/if}}
</a>
</div>
<div class="mobile-menu-toggle visible-xs">
<a href="#" data-toggle="mobile-menu">
<i class="fa-bars"></i>
</a>
</div>
</header>
<ul id="main-menu" class="main-menu">
{{#each categories}}
{{#unless hide_menu}}
<li>
{{#if categories}}
<a>
<i class="{{icon}}"></i>
<span class="title">{{category}}</span>
</a>
<ul>
{{#each categories}}
{{#unless hide_menu}}
<li>
<a href="#{{category}}" class="smooth">
<span class="title">{{category}}</span>
{{#if label}}
<span class="label label-pink pull-right hidden-collapsed">{{label}}</span>
{{/if}}
</a>
</li>
{{/unless}}
{{/each}}
</ul>
{{else}}
<a href="#{{category}}" class="smooth">
<i class="{{icon}}"></i>
<span class="title">{{category}}</span>
</a>
{{/if}}
</li>
{{/unless}}
{{/each}}
{{#if navigation_urls}}
<li>
<a>
<i class="linecons-location"></i>
<span class="title">网址导航</span>
</a>
<ul>
{{#each navigation_urls}}
{{#unless hide_menu}}
<li>
<a href="{{url}}">
<span class="title">{{title}}</span>
{{#if label}}
<span class="label label-pink pull-right hidden-collapsed">{{label}}</span>
{{/if}}
</a>
</li>
{{/unless}}
{{/each}}
</ul>
</li>
{{/if}}
{{#if friendship_links_url}}
<li>
<a href="{{friendship_links_url}}" target="_blank">
<i class="linecons-heart"></i>
<span class="tooltip-blue">友情链接</span>
</a>
</li>
{{/if}}
{{#if link_submission_url}}
<li>
<a href="{{link_submission_url}}" target="_blank">
<i class="linecons-pencil"></i>
<span class="tooltip-blue">提交网站</span>
</a>
</li>
{{/if}}
{{#if about_url}}
<li>
<a href="{{about_url}}" target="_blank">
<i class="linecons-lightbulb"></i>
<span class="tooltip-blue">关于本站</span>
<span class="label label-Primary pull-right hidden-collapsed">♥︎</span>
</a>
</li>
{{/if}}
</ul>
</div>
</div>
<div class="header-placeholder"></div>
<div class="main-content">
<nav class="navbar user-info-navbar" role="navigation">
<!-- User Info, Notifications and Menu Bar -->
<!-- Left links for user info navbar -->
<ul class="user-info-menu left-links list-inline list-unstyled">
<li class="hidden-sm hidden-xs">
{{!-- <a href="#" data-toggle="sidebar">
<i class="fa-bars"></i>
</a> --}}
</li>
{{#each navigation_urls}}
<li class="hover-line{{#if active}} active{{/if}}">
<a href="{{url}}">{{title}}</a>
</li>
{{/each}}
</ul>
<ul class="user-info-menu right-links list-inline list-unstyled">
{{#if github_url}}
<li class="hidden-sm hidden-xs">
<a href="{{github_url}}" target="_blank">
<i class="fa-github"></i> GitHub
</a>
</li>
{{/if}}
</ul>
</nav>
{{#*inline "tagPartial"}}
<!-- {{category}} -->
<h4 class="text-gray"><i class="linecons-tag" style="margin-right: 7px;" id="{{category}}"></i>{{category}}</h4>
<div class="row">
{{#each links}}
<div class="col-sm-5">
<div class="xe-widget xe-conversations box2 label-info" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="{{#if display_url}}{{{display_url}}}{{else}}{{{url}}}{{/if}}">
<div class="xe-comment-entry">
<a href="{{url}}" class="xe-user-img" target="_blank">
<img data-src="{{logo}}" class="lozad img-circle" width="40" alt="{{title}}" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7">
</a>
<div class="xe-comment">
<a href="{{url}}" class="xe-user-name overflowClip_1" target="_blank">
<strong>{{title}}</strong>
</a>
<p class="overflowClip_2">{{description}}</p>
{{#if tags}}<p class="overflowClip_2">#{{join (split tags ',') ' #'}}</p>{{/if}}
</div>
</div>
</div>
</div>
{{/each}}
</div>
<br />
<!--END {{category}} -->
{{/inline}}
{{#each categories}}
{{#if categories}}
{{#each categories}}
{{~> tagPartial category=category links=links}}
{{/each}}
{{else}}
{{~> tagPartial category=category links=links}}
{{/if}}
{{/each}}
<!-- Main Footer -->
<!-- Choose between footer styles: "footer-type-1" or "footer-type-2" -->
<!-- Add class "sticky" to always stick the footer to the end of page (if page contents is small) -->
<!-- Or class "fixed" to always fix the footer to the end of page -->
<footer class="main-footer sticky footer-type-1">
<div class="footer-inner">
<!-- Add your copyright text here -->
<div class="footer-text">
© 2017-2021
<a href="https://github.com/WebStackPage/WebStackPage.github.io" target="_blank"><strong>WebStack</strong></a> design by <a href="http://viggoz.com" target="_blank"><strong>Viggo</strong></a>
</div><br>
<div class="footer-text">
Powered by <a href="https://github.com/geneasy/geneasy" target="_blank"><strong>GenEasy</strong></a> @ <a href="https://www.pipecraft.net/" target="_blank"><strong>Pipecraft</strong></a>
</div>
<!-- Go to Top Link, just add rel="go-top" to any link to add this functionality -->
<div class="go-up">
<a href="#" rel="go-top">
<i class="fa-angle-up"></i>
</a>
</div>
</div>
</footer>
</div>
</div>
<!-- 锚点平滑移动 -->
<script type="text/javascript">
$(document).ready(function() {
//img lazy loaded
const observer = lozad();
observer.observe();
$(document).on('click', '.has-sub', function(){
var _this = $(this)
if(!$(this).hasClass('expanded')) {
setTimeout(function(){
_this.find('ul').attr("style","")
}, 300);
} else {
$('.has-sub ul').each(function(id,ele){
var _that = $(this)
if(_this.find('ul')[0] != ele) {
setTimeout(function(){
_that.attr("style","")
}, 300);
}
})
}
})
$('.user-info-menu .hidden-sm').click(function(){
if($('.sidebar-menu').hasClass('collapsed')) {
$('.has-sub.expanded > ul').attr("style","")
} else {
$('.has-sub.expanded > ul').show()
}
})
$("#main-menu li ul li").click(function() {
$(this).siblings('li').removeClass('active'); // 删除其他兄弟元素的样式
$(this).addClass('active'); // 添加当前元素的样式
});
$("a.smooth").click(function(ev) {
ev.preventDefault();
var offset = $(".mobile-menu-toggle").is(":visible") ? 90 : 25;
public_vars.$mainMenu.add(public_vars.$sidebarProfile).toggleClass('mobile-is-visible');
ps_destroy();
$("html, body").animate({
scrollTop: $($(this).attr("href")).offset().top - offset
}, {
duration: 500,
easing: "swing"
});
});
return false;
});
var href = "";
var pos = 0;
$("a.smooth").click(function(e) {
$("#main-menu li").each(function() {
$(this).removeClass("active");
});
$(this).parent("li").addClass("active");
e.preventDefault();
href = $(this).attr("href");
pos = $(href).position().top - 30;
});
// 卡片点击
$(".xe-widget.xe-conversations a").on('click', function(e){
// 禁止 a 标签的默认点击事件,用 card 的点击事件代替
e.preventDefault();
});
$(".xe-widget.xe-conversations").on('click', function(e){
e.preventDefault();
// 禁止 a 标签的默认点击事件,用 card 的点击事件代替
var url = $("a", this).attr("href");
if (url) {
window.open(url, "_blank");
}
});
</script>
<!-- Bottom Scripts -->
<script src="https://cdn.jsdelivr.net/gh/pzwd-net/webstack-assets@main/js/bootstrap.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/pzwd-net/webstack-assets@main/js/TweenMax.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/pzwd-net/webstack-assets@main/js/resizeable.js"></script>
<script src="https://cdn.jsdelivr.net/gh/pzwd-net/webstack-assets@main/js/joinable.js"></script>
<script src="https://cdn.jsdelivr.net/gh/pzwd-net/webstack-assets@main/js/xenon-api.js"></script>
<script src="https://cdn.jsdelivr.net/gh/pzwd-net/webstack-assets@main/js/xenon-toggles.js"></script>
<!-- JavaScripts initializations and stuff -->
<script src="https://cdn.jsdelivr.net/gh/pzwd-net/webstack-assets@main/js/xenon-custom.js"></script>
<script src="https://cdn.jsdelivr.net/gh/pzwd-net/webstack-assets@main/js/lozad.js"></script>
{{#if ga_tracking_code_id}}
<!-- Global Site Tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{ga_tracking_code_id}}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{{ga_tracking_code_id}}');
</script>
{{/if}}
</body>
</html>