-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
101 lines (83 loc) · 3.81 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
---
layout: default
---
<div align="center">
<p style="text-align:center;font-size:14px">本站为共识网(www.21ccom.net, 2016年10月猝)的互联网档案馆(Wayback Machine)存档的全部索引。<i>感谢那些随手存档的共识网读者!</i></p>
<p style="text-align:center;color:blue;font-size:20px">打开方式:点击下方关键词或日期,或在搜索框内输入关键词</p>
<span id="search-container" >
<input type="text" id="search-input" placeholder="標題 作者 來源 日期 (已收集{{ site.data.meta[0].all }}條記錄)"
style="margin: 10px 0px 0px 0px; height: 30px;width: 85%" title="本站最正確的打開方式">
<a><i class="fa fa-search" title="限前{{ site.searchlimit }}結果"></i></a>
</span>
<p style="text-align:center;color:purple;font-size:14px">注意:计数上千的标签加载较慢 <i>——让子弹飞会儿</i></p>
</div>
<noscript>
<p style="text-align:center;color:red;font-size:20px">本页需开启Javascript以正常工作 Javascript is required for functionality</p>
</noscript>
<div class="tags wrapper-masthead">
<ul class="label">
{% for tag in site.data.tags2 %}
{% assign count = tag.count | plus: 0 %}
{% if count > 0 %}
<li>
<a onclick="sjs.search('{{tag.tag}}')">
<span>{{ tag.tag }}</span>
<span class="count">{{ tag.count }}</span>
</a>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
<div>
<p style="text-align:center;font-size:14px">共识网首页<a href="{{ site.baseurl }}/external_links/">友情链接</a> | 本站<a href="https://github.com/NodeBE4/21ccom">代码</a> | 下载<a href="{{ site.baseurl }}/all.json">索引数据</a> | <a href="{{ site.baseurl }}/home/">首页索引</a> | <a href="https://rawcdn.githack.com/NodeBE4/21ccom/19f26e73e12c603bffd730d443c6953c7bc85674/21ccom_net_all.txt">54万条共识网已存档链接</a> | 短链接 git.io/JLSg1 </p>
</div>
<script>
function ready() {
setTimeout(function(){
sjs.search("宪政");
//your code here
}, 3000);
}
document.addEventListener("DOMContentLoaded", ready);
</script>
<!-- Html Elements for Search -->
<ul id="results-container" class="searched" style="color: #2980B9;"></ul>
<script src="{{ site.baseurl }}/assets/js/simple-jekyll-search.min.js"></script>
<!-- Configuration -->
<script>
var sjs = SimpleJekyllSearch({
searchInput: document.getElementById('search-input'),
resultsContainer: document.getElementById('results-container'),
json: '{{site.baseurl}}/all.json',
searchResultTemplate: '<li><a href="{url}" title="跳转至时光机存档" target="_blank">{title}</a><span style="float:right;"><time>{date}</time> <a href="https://www.runnaroo.com/search?term={title}" title="在互联网上搜索本文" target="_blank"><img src="https://www.runnaroo.com/img/small_logo.svg" width="15px" style="display: inline-block" /></a> </span></li>',
noResultsText: '没找到',
limit: {{ site.searchlimit }},
fuzzy: false,
exclude: ['Welcome']
})
</script>
<div class="pagination">
{% if paginator.previous_page %}
<span class="prev">
<a href="{{ site.baseurl }}{{ paginator.previous_page_path }}" class="prev">
上一页
</a>
</span>
{% endif %}
{% if paginator.next_page %}
<span class="next">
<a href="{{ site.baseurl}}{{ paginator.next_page_path }}" class="next">
下一页
</a>
</span>
{% endif %}
{% include fab.html %}
<script>
/* post pagination keyboard shortcuts */
document.body.onkeyup = function(e){
if (e.keyCode == '37') { window.location = '{{ site.baseurl }}{{ paginator.previous_page_path }}'; } // left arrow key
if (e.keyCode == '39') { window.location = '{{ site.baseurl}}{{ paginator.next_page_path }}'; } // right arrow key
};
</script>
</div>