Fix bugs for blog theme
This commit is contained in:
@@ -135,7 +135,7 @@ def personnalize_blog():
|
||||
f = request.files['personnal-blog-theme']
|
||||
|
||||
blog_theme = str(request.form['blog-theme'])
|
||||
|
||||
print(blog_theme)
|
||||
|
||||
if blog_theme != "Default":
|
||||
copy( "static/blog-"+blog_theme+".css",
|
||||
@@ -261,7 +261,7 @@ def viewPrivateArticle(username, title):
|
||||
conn.close()
|
||||
if post != None:
|
||||
post_info = (dict(title=post[0], subtitle=post[1], creation_date=post[3], last_updated=post[4],author=post[5]))
|
||||
content= markdown(post[2])
|
||||
content = markdown(post[2])
|
||||
return render_template('blog.html', post_info=post_info, content=content)
|
||||
else:
|
||||
return redirect(url_for('blog'), code=404)
|
||||
|
||||
Reference in New Issue
Block a user