Skip to content

Commit 58a4428

Browse files
author
halida
committed
adjest ui
1 parent 40a5874 commit 58a4428

File tree

3 files changed

+19
-14
lines changed

3 files changed

+19
-14
lines changed

build-res/base.html

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,16 @@
1010

1111
<body><div id="wrap">
1212

13-
<div id="header">
14-
</div>
1513
<div id="nav"><ul>
1614
<li><a href="index.html">网络寻租</a></li>
1715
<li><a href="机械唯物主义.html">关于</a></li>
1816
<li><a href="rss">rss</a></li>
1917
</ul></div>
2018

19+
<div id="header">
20+
%(header)s
21+
</div>
22+
2123
<div id="main">
2224
%(body)s
2325
</div>
@@ -35,13 +37,13 @@
3537
height: 300,
3638
theme: {
3739
shell: {
38-
background: '#333333',
39-
color: '#ffffff'
40+
background: '#f0f0f0',
41+
color: '#000000'
4042
},
4143
tweets: {
42-
background: '#000000',
43-
color: '#ffffff',
44-
links: '#4aed05'
44+
background: '#f0f0f0',
45+
color: '#000000',
46+
links: '#008000'
4547
}
4648
},
4749
features: {

build-res/style.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,15 @@ body,html {
2626
}
2727

2828
/* color */
29-
.document {
29+
#main {
3030
background-color: #f0f0f0;
3131
}
3232
#title {
3333
text-align:center;
3434
}
35+
#comments {
36+
background-color: white;
37+
}
3538
hr {
3639
color: #303030;
3740
}

build.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
HTML_HEADER = open(os.path.join(res_path, 'base.html')).read().decode('utf-8')
1515
RSS_ITEM = open(os.path.join(res_path, 'rss_item.html')).read().decode('utf-8')
1616
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>'''}
2323

2424
def main():
2525
#获取文件列表

0 commit comments

Comments
 (0)