-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
88 lines (85 loc) · 3.85 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
---
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">
{% 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=5ytn1ssq6za&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">
{% 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 id="year_{{this_year}}">{{this_year}}</h1>
<h2 id="month_{{this_year}}_{{this_month}}">{{this_month}}</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 id="year_{{next_year}}">{{next_year}}</h1>
<h2 id="month_{{next_year}}_{{next_month}}">{{next_month}}</h2>
<ul>
{% else %}
{% if this_month != next_month %}
</ul>
<h2 id="month_{{next_year}}_{{next_month}}">{{next_month}}</h2>
<ul>
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
</div>
</div>
</div>
</div>
</div>
</div>