fix #34 and added dark and pink-lighter themes #11

This commit is contained in:
cube
2026-03-24 21:17:27 +00:00
parent ed19a3204f
commit b479a48904
4 changed files with 101 additions and 3 deletions

View File

@@ -32,4 +32,11 @@ def create_app(test_config=None):
from . import blog
app.register_blueprint(blog.bp)
@app.context_processor
def utility_processor():
def get_themes():
themes = os.listdir(app.config["THEMES_FOLDER"])
return themes
return dict(get_themes=get_themes)
return app