Skip to content

Commit 248f9d0

Browse files
committed
qiniu url
1 parent 38b27a2 commit 248f9d0

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

app/OctBlog/config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@
5656
'background_image': {
5757
'home': os.environ.get('bg_home') or 'http://7d9q7a.com1.z0.glb.clouddn.com/octblog-bg.jpg',
5858
'post': os.environ.get('bg_post') or 'http://7d9q7a.com1.z0.glb.clouddn.com/octblog-bg.jpg',
59-
'about': os.environ.get('bg_about') or 'http://7d9q7a.com1.z0.glb.clouddn.com/octblog_about.jpg'
59+
'about': os.environ.get('bg_about') or 'http://7d9q7a.com1.z0.glb.clouddn.com/octblog_about.jpg',
60+
'qiniu': os.environ.get('qiniu') or 'http://assets.qiniu.com/qiniu-transparent.png',
6061
},
6162

6263
}

app/main/views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def get_base_data():
3737
'bg_home': BACKGROUND['home'],
3838
'bg_post': BACKGROUND['post'],
3939
'bg_about': BACKGROUND['about'],
40+
'qiniu': BACKGROUND['qiniu'],
4041
}
4142
return data
4243

app/templates/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
</li>
146146
</ul>
147147
<p class="copyright text-muted">Copyright &copy; Oct Blog 2015</p>
148-
<p class="copyright text-muted"><a href="http://www.qiniu.com" target="_blank" ><img src="http://assets.qiniu.com/qiniu-transparent.png"></a></p>
148+
<p class="copyright text-muted"><a href="http://www.qiniu.com" target="_blank" ><img src="{{ qiniu }}"></a></p>
149149
</div>
150150
</div>
151151
</div>

0 commit comments

Comments
 (0)