From 4f89b16a1cb9912d4f8c4e167f59926b1b867be6 Mon Sep 17 00:00:00 2001 From: kitoy Date: Mon, 22 Dec 2025 01:00:43 +0100 Subject: [PATCH] Fix bugs for blog theme --- static/blog-orangina.css | 2 +- templates/blog.html | 5 ++++- templates/blog_author.html | 2 +- views/blog.py | 4 ++-- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/static/blog-orangina.css b/static/blog-orangina.css index 3f8542b..8f29175 100644 --- a/static/blog-orangina.css +++ b/static/blog-orangina.css @@ -2,7 +2,7 @@ :root { - --color-text: #d2b123; + --color-text: #e9d43a; --color-background: #1e227b; } diff --git a/templates/blog.html b/templates/blog.html index a39527f..2525465 100644 --- a/templates/blog.html +++ b/templates/blog.html @@ -2,11 +2,14 @@ Article de {{ post_info.author }} - + + + +
diff --git a/templates/blog_author.html b/templates/blog_author.html index 5f237ac..7410e84 100644 --- a/templates/blog_author.html +++ b/templates/blog_author.html @@ -2,7 +2,7 @@ Article de {{ post_info.author }} - + diff --git a/views/blog.py b/views/blog.py index fd782a2..87f22d2 100644 --- a/views/blog.py +++ b/views/blog.py @@ -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)