1
1
< aside class ="myaside ">
2
+
2
3
<!--关注我-->
3
4
< div class ="focus-me bg-color animation-div ">
4
5
< h4 class ="index-title "> < i class ="el-heart "> </ i > 关注我
5
- < small > Focus Me </ small >
6
+ < small > Follow </ small >
6
7
</ h4 >
7
8
< div class ="xiangguan ">
8
-
9
- < div > < a class ="benbo " href ="https://github.com/jhao104/django-blog " target ="_blank "> < i
10
- class ="el-download-alt "> </ i > </ a > < span > 博客源码</ span > </ div >
11
- < div > < a class ="taobao "
12
- href ="https://my.oschina.net/jhao104/blog "
13
- target ="_blank "> < i class ="el-blogger "> </ i > </ a > < span > 博客地址</ span > </ div >
9
+ < div > < a class ="githbu " href ="https://github.com/jhao104 " target ="_blank ">
10
+ < i class ="el-github "> </ i > </ a > < span > Github</ span > </ div >
11
+ < div > < a class ="benbo " href ="https://github.com/jhao104/django-blog " target ="_blank ">
12
+ < i class ="el-download-alt "> </ i > </ a > < span > 博客源码</ span > </ div >
14
13
< div > < a class ="side-fx "> < i class ="el-share-alt "> </ i > </ a > < span > 分享本博</ span > </ div >
15
14
< div > < a class ="mail-btn " href ="javascript:; "> < i class ="el-envelope "> </ i > </ a > < span > 订阅我</ span > </ div >
16
15
</ div >
@@ -20,7 +19,7 @@ <h4 class="index-title"><i class="el-heart"></i>关注我
20
19
< input type ="hidden " name ="t " value ="qf_booked_feedback "/>
21
20
< input type ="hidden " name ="id " value ="b2b151b4bc010575c083e18e227ae907aac82bc47e84d3e0 "/>
22
21
< span > 订阅</ span >
23
- < input name ="to " type ="text " placeholder ="输入邮箱点击订阅吧 " onfocus ="this.placeholder='' "
22
+ < input name ="to " type ="text " placeholder ="输入邮箱点击订阅吧(暂未开放) " onfocus ="this.placeholder='' "
24
23
onblur ="this.placeholder='输入邮箱点击订阅吧(暂无)' "/>
25
24
< i class ="el-envelope "> < input value =" " type ="submit "/> </ i >
26
25
</ form >
@@ -46,27 +45,28 @@ <h4 class="index-title"><i class="el-heart"></i>关注我
46
45
"bdSize" : "32"
47
46
} , "share" : { }
48
47
} ;
49
- with ( document ) 0 [ ( getElementsByTagName ( 'head' ) [ 0 ] || body ) . appendChild ( createElement ( 'script' ) ) . src = 'http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=' + ~ ( - new Date ( ) / 36e5 ) ] ; </ script >
48
+ with ( document ) 0 [ ( getElementsByTagName ( 'head' ) [ 0 ] || body ) . appendChild ( createElement ( 'script' ) ) . src = 'http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=' + ~ ( - new Date ( ) / 36e5 ) ] ; </ script >
50
49
</ div >
51
50
</ div >
52
- <!--最新更新-->
53
51
52
+ <!--最新咨询-->
54
53
< div class ="clos-new bg-color animation-div ">
55
54
< h4 class ="index-title "> < i class ="el-bulb "> </ i > 最新资讯
56
- < small > Latest News</ small >
55
+ < small > News</ small >
57
56
</ h4 >
58
57
< ul >
59
58
< li > < i class ="el-cloud "> </ i >
60
59
< iframe id ="tianqi " scrolling ="no " frameborder ="0 " allowtransparency ="true "
61
- src ="http ://i.tianqi.com/index.php ?c=code&a=getcode&id=34&h=25&w=280 "> </ iframe >
60
+ src ="https ://i.tianqi.com/?c=code&a=getcode&id=34&h=25&w=280 "> </ iframe >
62
61
</ li >
63
62
64
63
< li > < i class ="el-calendar "> </ i > 历史今天:
65
- < iframe src ="http://www.todayonhistory .com/code/ 6.html?w=250 &h=20&bky=dotted&bks=0&fs=14&fc=#565656&hg=14 &ie=0&xhx=none&sd=300 &px=3&len=0&sk=1&n=0 "
66
- width ="250 " height ="15 " scrolling ="no " frameborder ="0 " allowtransparency ="true "> </ iframe >
64
+ < iframe src ="http://code.lssdjt .com/6.html?w=400 &h=20&bky=dotted&bks=0&fs=14&fc=#565656&hg=20 &ie=0&xhx=none&sd=1000 &px=3&len=0&sk=1&n=0 "
65
+ width ="300 " height ="16 " scrolling ="no " frameborder ="0 " allowtransparency ="true "> </ iframe >
67
66
</ li >
68
67
</ ul >
69
68
</ div >
69
+
70
70
<!--搜索-->
71
71
< div class ="search animation-div ">
72
72
< form action ="{% url "blog:search " %}" method="get ">
@@ -83,12 +83,12 @@ <h4 class="index-title"><i class="el-bulb"></i>最新资讯
83
83
< div class ="tab-btn "> < a class ="hd-btn tab-active " href ="javascript:; "> < i class ="el-comment-alt "> </ i > 最新评论</ a > < a
84
84
class ="ph-btn " href ="javascript:; "> < i class ="el-signal "> </ i > 文章排行</ a > </ div >
85
85
< ul class ="hudong-ul ">
86
- <!--=======查询相册=============-->
87
86
{% for comment in comment_list %}
88
87
< li >
89
88
< div class ="sd-name ">
90
89
< span > < i class ="el-book "> </ i > {{ comment.title }}</ span >
91
- < a class ="blue-text " href ="{{ comment.url }} " title ="{{ comment.comment }} "> {{ comment.comment }}</ a >
90
+ < a class ="blue-text " href ="{{ comment.url }} "
91
+ title ="{{ comment.comment }} "> {{ comment.comment }}</ a >
92
92
< span style ="text-align: right "> — < i class ="el-user "> </ i > {{ comment.user_name }}</ span >
93
93
</ div >
94
94
</ li >
@@ -98,28 +98,44 @@ <h4 class="index-title"><i class="el-bulb"></i>最新资讯
98
98
</ ul >
99
99
<!--文章排行-->
100
100
< ul class ="paihang-ul ">
101
- {% for article in article_rank %}
102
- < li > < span > </ span > < a href ="{% url "blog:detail " pk=article.id %} "
103
- title="{{ article.title }} "> {{ article.title }}< b > < i
104
- class ="el-eye-open "> </ i > ({{ article.view }})</ b > </ a > </ li >
101
+ {% for blog in blog_top %}
102
+ < li >
103
+ < span > </ span >
104
+ < a href ="{% url "blog:detail " blog.id %}" title="{{ blog.title }} "> {{ blog.title }}
105
+ < b > < i class ="el-eye-open "> </ i > ({{ blog.view }})</ b >
106
+ </ a >
107
+ </ li >
105
108
{% endfor %}
106
109
</ ul >
107
110
108
111
</ div >
109
112
110
113
<!--标签-->
111
114
< div class ="cloud bg-color animation-div ">
112
- < h4 class ="index-title "> < i class ="el-tags "> </ i > 标签云
113
- < small > Tags Clouds </ small >
115
+ < h4 class ="index-title "> < i class ="el-tags "> </ i > 标签
116
+ < small > Tags</ small >
114
117
</ h4 >
115
118
< ul id ="3dcloud ">
116
119
{% for tag in tag_list %}
117
- < li > < a href ="{% url "blog:tag " name=tag.tag_name %} " title="标签:{{ tag.tag_name }} "> {{ tag.tag_name }}</ a > </ li >
120
+ < li > < a href ="{% url "blog:tag " name=tag.tag_name %} "
121
+ title="标签:{{ tag.tag_name }} "> {{ tag.tag_name }}</ a > </ li >
118
122
{% endfor %}
119
123
</ ul >
120
124
</ div >
121
125
122
-
123
126
<!--友情链接-->
124
127
{% include "blog/blogroll.html" %}
125
- </ aside >
128
+ </ aside >
129
+
130
+ < script >
131
+ // 点击分享
132
+ $ ( ".side-fx" ) . click ( function ( e ) {
133
+ $ ( ".side-bdfx" ) . show ( ) ;
134
+ $ ( ".mail-dy" ) . hide ( ) ;
135
+ $ ( document ) . one ( "click" , function ( ) {
136
+ $ ( ".side-bdfx" ) . hide ( ) ;
137
+ $ ( ".mail-dy" ) . hide ( ) ;
138
+ } ) ;
139
+ e . stopPropagation ( ) ;
140
+ } ) ;
141
+ </ script >
0 commit comments