File tree 3 files changed +19
-14
lines changed 3 files changed +19
-14
lines changed Original file line number Diff line number Diff line change 10
10
11
11
< body > < div id ="wrap ">
12
12
13
- < div id ="header ">
14
- </ div >
15
13
< div id ="nav "> < ul >
16
14
< li > < a href ="index.html "> 网络寻租</ a > </ li >
17
15
< li > < a href ="机械唯物主义.html "> 关于</ a > </ li >
18
16
< li > < a href ="rss "> rss</ a > </ li >
19
17
</ ul > </ div >
20
18
19
+ < div id ="header ">
20
+ %(header)s
21
+ </ div >
22
+
21
23
< div id ="main ">
22
24
%(body)s
23
25
</ div >
35
37
height : 300 ,
36
38
theme : {
37
39
shell : {
38
- background : '#333333 ' ,
39
- color : '#ffffff '
40
+ background : '#f0f0f0 ' ,
41
+ color : '#000000 '
40
42
} ,
41
43
tweets : {
42
- background : '#000000 ' ,
43
- color : '#ffffff ' ,
44
- links : '#4aed05 '
44
+ background : '#f0f0f0 ' ,
45
+ color : '#000000 ' ,
46
+ links : '#008000 '
45
47
}
46
48
} ,
47
49
features : {
Original file line number Diff line number Diff line change @@ -26,12 +26,15 @@ body,html {
26
26
}
27
27
28
28
/* color */
29
- . document {
29
+ # main {
30
30
background-color : # f0f0f0 ;
31
31
}
32
32
# title {
33
33
text-align : center;
34
34
}
35
+ # comments {
36
+ background-color : white;
37
+ }
35
38
hr {
36
39
color : # 303030 ;
37
40
}
Original file line number Diff line number Diff line change 14
14
HTML_HEADER = open (os .path .join (res_path , 'base.html' )).read ().decode ('utf-8' )
15
15
RSS_ITEM = open (os .path .join (res_path , 'rss_item.html' )).read ().decode ('utf-8' )
16
16
RSS_HTML = open (os .path .join (res_path , 'rss.html' )).read ().decode ('utf-8' )
17
- INDEX_HTML = HTML_HEADER % {'title' : u"网络寻租" , 'body' : u'%s' }
18
- ARTICLE_HTML = HTML_HEADER % { 'title' : "%(title)s" , 'body ' : ur'''
19
- <div id="title"><h1>%(title)s</h1></div>
20
- %(content)s
21
- <div id="comments" >%(disqus )s</div>
22
- ''' }
17
+ INDEX_HTML = HTML_HEADER % {'title' : u"网络寻租" ,
18
+ 'header ' : '' ,
19
+ 'body' : u'%s' }
20
+ ARTICLE_HTML = HTML_HEADER % { 'title' : "%(title)s" ,
21
+ 'header' : '<h1 >%(title )s</h1>' ,
22
+ 'body' : ur'''%(content)s <br/> <div id="comments">%(disqus)s</div> ''' }
23
23
24
24
def main ():
25
25
#获取文件列表
You can’t perform that action at this time.
0 commit comments