Fix bugs for blog theme
This commit is contained in:
parent
0803124c14
commit
4f89b16a1c
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
:root
|
:root
|
||||||
{
|
{
|
||||||
--color-text: #d2b123;
|
--color-text: #e9d43a;
|
||||||
--color-background: #1e227b;
|
--color-background: #1e227b;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,11 +2,14 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title> Article de {{ post_info.author }} </title>
|
<title> Article de {{ post_info.author }} </title>
|
||||||
<link rel="stylesheet" href="/static/blog.css" type="text/css">
|
|
||||||
|
<link rel="stylesheet" href="/{{ post_info.author }}/blog.css" type="text/css">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div class="articles">
|
<div class="articles">
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title> Article de {{ post_info.author }} </title>
|
<title> Article de {{ post_info.author }} </title>
|
||||||
<link rel="stylesheet" href="/static/{{ post_info.author}}/blog.css" type="text/css">
|
<link rel="stylesheet" href="/{{ post_info.author}}/blog.css" type="text/css">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
@ -135,7 +135,7 @@ def personnalize_blog():
|
|||||||
f = request.files['personnal-blog-theme']
|
f = request.files['personnal-blog-theme']
|
||||||
|
|
||||||
blog_theme = str(request.form['blog-theme'])
|
blog_theme = str(request.form['blog-theme'])
|
||||||
|
print(blog_theme)
|
||||||
|
|
||||||
if blog_theme != "Default":
|
if blog_theme != "Default":
|
||||||
copy( "static/blog-"+blog_theme+".css",
|
copy( "static/blog-"+blog_theme+".css",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user