From a936fd5ee649844b54305d10ab4faca725859bd5 Mon Sep 17 00:00:00 2001 From: tiyn Date: Mon, 15 Apr 2024 05:16:50 +0200 Subject: [PATCH] fixed minor error with short title --- src/app.py | 10 +++++----- src/templates/template.html | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app.py b/src/app.py index 0855dfc..9f51654 100644 --- a/src/app.py +++ b/src/app.py @@ -16,32 +16,32 @@ MAIL = config.MAIL @app.errorhandler(404) def page_not_found(e): - return render_template("error.html", title=STITLE, errorcode="404", style=STYLE, language=LANGUAGE), 404 + return render_template("error.html", title=TITLE, stitle=STITLE, errorcode="404", style=STYLE, language=LANGUAGE), 404 @app.route("/") @app.route("/index.html") def index(): content = con_gen.gen_index_string() - return render_template("index.html", title=STITLE, content_string=content, style=STYLE, language=LANGUAGE) + return render_template("index.html", title=TITLE, stitle=STITLE, content_string=content, style=STYLE, language=LANGUAGE) @app.route("/imprint") @app.route("/imprint.html") def imprint(): - return render_template("imprint.html", title=STITLE, mail=MAIL, style=STYLE, language=LANGUAGE) + return render_template("imprint.html", title=TITLE, stitle=STITLE, mail=MAIL, style=STYLE, language=LANGUAGE) @app.route("/archive") @app.route("/archive.html") def archive(): content = con_gen.gen_arch_string() - return render_template("archive.html", title=STITLE, content_string=content, style=STYLE, language=LANGUAGE) + return render_template("archive.html", title=TITLE, stitle=STITLE, content_string=content, style=STYLE, language=LANGUAGE) @app.route("/entry/") def entry(path): content = con_gen.gen_stand_string(path) if content != "": - return render_template("standalone.html", title=STITLE, content_string=content, style=STYLE, language=LANGUAGE) + return render_template("standalone.html", title=TITLE, stitle=STITLE, content_string=content, style=STYLE, language=LANGUAGE) abort(404) diff --git a/src/templates/template.html b/src/templates/template.html index f173edb..5952ec4 100644 --- a/src/templates/template.html +++ b/src/templates/template.html @@ -11,7 +11,7 @@