File tree Expand file tree Collapse file tree 2 files changed +27
-2
lines changed Expand file tree Collapse file tree 2 files changed +27
-2
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,8 @@ <h1><a href="{% url 'blog:index' %}"><b>Black</b> & White</a></h1>
73
73
{% endblock main %}
74
74
</ main >
75
75
< aside class ="col-md-4 ">
76
+ {% block toc %}
77
+ {% endblock toc %}
76
78
< div class ="widget widget-recent-posts ">
77
79
< h3 class ="widget-title "> 最新文章</ h3 >
78
80
{% get_recent_posts as recent_post_list %}
Original file line number Diff line number Diff line change @@ -54,7 +54,8 @@ <h3>评论列表,共 <span>{{ post.comment_set.count }}</span> 条评论</h3>
54
54
{% for comment in comment_list %}
55
55
< li class ="comment-item ">
56
56
< span class ="nickname "> {{ comment.name }}</ span >
57
- < time class ="submit-date "> {{ comment.created_time }}</ time >
57
+ < time class ="submit-date "
58
+ datetime ="{{ comment.created_time }} "> {{ comment.created_time }}</ time >
58
59
< div class ="text ">
59
60
{{ comment.text }}
60
61
</ div >
@@ -65,4 +66,26 @@ <h3>评论列表,共 <span>{{ post.comment_set.count }}</span> 条评论</h3>
65
66
</ ul >
66
67
</ div >
67
68
</ section >
68
- {% endblock main %}
69
+ {% endblock main %}
70
+ {% block toc %}
71
+ < div class ="widget widget-content ">
72
+ < h3 class ="widget-title "> 文章目录</ h3 >
73
+ < ul >
74
+ < li >
75
+ < a href ="# "> 教程特点</ a >
76
+ </ li >
77
+ < li >
78
+ < a href ="# "> 谁适合这个教程</ a >
79
+ </ li >
80
+ < li >
81
+ < a href ="# "> 在线预览</ a >
82
+ </ li >
83
+ < li >
84
+ < a href ="# "> 资源列表</ a >
85
+ </ li >
86
+ < li >
87
+ < a href ="# "> 获取帮助</ a >
88
+ </ li >
89
+ </ ul >
90
+ </ div >
91
+ {% endblock toc %}
You can’t perform that action at this time.
0 commit comments