-
Notifications
You must be signed in to change notification settings - Fork 213
/
index.html
147 lines (138 loc) · 6.6 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
---
layout: default
---
<div class="container docs-container">
<div class="row">
<div class="col-md-3">
<div class="sidebar hidden-print" role="complementary">
<div id="navigation">
<h1>目录</h1>
<ul class="nav sidenav">
{% capture topping %}false{% endcapture %}
{% for post in site.posts %}
{% if post.topping %}
{% capture topping %}{{post.topping}}{% endcapture %}
{% break %}
{% endif %}
{% endfor %}
{% if topping == 'true' %}
<li><a href="#topping">置顶</a>
{% endif %}
{% for post in site.posts %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% capture this_month %}{{ post.date | date: "%B" }}{% endcapture %}
{% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
{% capture next_month %}{{ post.previous.date | date: "%B" }}{% endcapture %}
{% if forloop.first %}
<li><a href="#year_{{this_year}}">{{this_year}}</a>
<ul class="nav">
<li><a href="#month_{{this_year}}_{{this_month}}">{{this_month}}</a></li>
{% endif %}
{% if forloop.last %}
</ul>
</li>
{% else %}
{% if this_year != next_year %}
</ul>
</li>
<li><a href="#year_{{next_year}}">{{next_year}}</a>
<ul class="nav">
<li><a href="#month_{{next_year}}_{{next_month}}">{{next_month}}</a></li>
{% else %}
{% if this_month != next_month %}
<li><a href="#month_{{next_year}}_{{next_month}}">{{next_month}}</a></li>
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
</ul>
<div style="height: 200px;width: 200px;">
<script type="text/javascript" src="//rf.revolvermaps.com/0/0/8.js?i={{ site.revolvermaps }}&m=0&c=ff0000&cr1=ffffff&f=arial&l=33" async="async">
</script>
</div>
</div>
</div>
</div>
<div class="col-md-9" role="main">
<div class="panel docs-content">
<div class="wrapper">
<div class="home">
{% capture topping %}false{% endcapture %}
{% for post in site.posts %}
{% if post.topping %}
{% capture topping %}{{post.topping}}{% endcapture %}
{% break %}
{% endif %}
{% endfor %}
{% if topping == 'true' %}
<h2 class="topping">
置顶文章
<span class="anchor-target" id="topping"></span>
<a href="#topping" name="topping" class="anchor glyphicon glyphicon-link"></a>
</h2>
<ul>
{% for post in site.posts %}
{% if post.topping %}
<ol class="breadcrumb">
<li><span>{{ post.date | date: "%B %e, %Y" }}</span> » <a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></li>
</ol>
{% endif %}
{% endfor %}
</ul>
{% endif %}
{% for post in site.posts %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% capture this_month %}{{ post.date | date: "%B" }}{% endcapture %}
{% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
{% capture next_month %}{{ post.previous.date | date: "%B" }}{% endcapture %}
{% if forloop.first %}
<h1>
{{this_year}}
<span class="anchor-target" id="year_{{this_year}}"></span>
<a href="#year_{{this_year}}" name="year_{{this_year}}" class="anchor glyphicon glyphicon-link"></a>
</h1>
<h2>
{{this_month}}
<span class="anchor-target" id="month_{{this_year}}_{{this_month}}"></span>
<a href="#month_{{this_year}}_{{this_month}}" name="month_{{this_year}}_{{this_month}}" class="anchor glyphicon glyphicon-link"></a>
</h2>
<ul>
{% endif %}
<ol class="breadcrumb">
<li><span>{{ post.date | date: "%B %e, %Y" }}</span> » <a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></li>
</ol>
{% if forloop.last %}
</ul>
{% else %}
{% if this_year != next_year %}
</ul>
<h1>
{{next_year}}
<span class="anchor-target" id="year_{{next_year}}"></span>
<a href="#year_{{next_year}}" name="year_{{next_year}}" class="anchor glyphicon glyphicon-link"></a>
</h1>
<h2>
{{next_month}}
<span class="anchor-target" id="month_{{next_year}}_{{next_month}}"></span>
<a href="#month_{{next_year}}_{{next_month}}" name="month_{{next_year}}_{{next_month}}" class="anchor glyphicon glyphicon-link"></a>
</h2>
<ul>
{% else %}
{% if this_month != next_month %}
</ul>
<h2>
{{next_month}}
<span class="anchor-target" id="month_{{next_year}}_{{next_month}}"></span>
<a href="#month_{{next_year}}_{{next_month}}" name="month_{{next_year}}_{{next_month}}" class="anchor glyphicon glyphicon-link"></a>
</h2>
<ul>
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
</div>
</div>
</div>
</div>
</div>
</div>