File tree Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,8 @@ <h1><a href="index.html"><b>Black</b> & White</a></h1>
71
71
{% endblock main %}
72
72
</ main >
73
73
< aside class ="col-md-4 ">
74
+ {% block toc %}
75
+ {% endblock toc %}
74
76
< div class ="widget widget-recent-posts ">
75
77
< h3 class ="widget-title "> 最新文章</ h3 >
76
78
< ul >
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ <h1 class="entry-title">{{ post.title }}</h1>
17
17
{{ post.body }}
18
18
</ div >
19
19
</ article >
20
- < section class ="comment-area ">
20
+ < section class ="comment-area " id =" comment-area " >
21
21
< hr >
22
22
< h3 > 发表评论</ h3 >
23
23
< form action ="# " method ="post " class ="comment-form ">
@@ -75,4 +75,26 @@ <h3>评论列表,共 <span>4</span> 条评论</h3>
75
75
</ ul >
76
76
</ div >
77
77
</ section >
78
- {% endblock main %}
78
+ {% endblock main %}
79
+ {% block toc %}
80
+ < div class ="widget widget-content ">
81
+ < h3 class ="widget-title "> 文章目录</ h3 >
82
+ < ul >
83
+ < li >
84
+ < a href ="# "> 教程特点</ a >
85
+ </ li >
86
+ < li >
87
+ < a href ="# "> 谁适合这个教程</ a >
88
+ </ li >
89
+ < li >
90
+ < a href ="# "> 在线预览</ a >
91
+ </ li >
92
+ < li >
93
+ < a href ="# "> 资源列表</ a >
94
+ </ li >
95
+ < li >
96
+ < a href ="# "> 获取帮助</ a >
97
+ </ li >
98
+ </ ul >
99
+ </ div >
100
+ {% endblock toc %}
You can’t perform that action at this time.
0 commit comments