diff --git a/isbn_sort/__init__.py b/isbn_sort/__init__.py index 91937d9..ece1d82 100644 --- a/isbn_sort/__init__.py +++ b/isbn_sort/__init__.py @@ -1,5 +1,6 @@ -from flask import Flask, redirect, g +from flask import Flask, redirect, g, send_file import secrets +import os from .app import bp as app_bp @@ -10,8 +11,20 @@ app.config["SECRET_KEY"] = secrets.token_hex() app.register_blueprint(app_bp) + +@app.route("/") +def index(): + return redirect("/app", 301) + + +@app.route("/favicon.ico") +def favicon(): + return send_file("static/favicon.ico") + + @app.route("/") def handle_redirect(path): + path = path if path.startswith("/") else "/"+path if not path.startswith("/app"): return redirect("/app"+path, 301) abort(404) diff --git a/isbn_sort/static/favicon.ico b/isbn_sort/static/favicon.ico new file mode 100644 index 0000000..ce4e220 Binary files /dev/null and b/isbn_sort/static/favicon.ico differ diff --git a/isbn_sort/static/style.css b/isbn_sort/static/style.css index ecf4826..e9eca37 100644 --- a/isbn_sort/static/style.css +++ b/isbn_sort/static/style.css @@ -33,7 +33,6 @@ --color-mantle: #181825; --color-crust: #11111b; --color-action: #333d5d; - --font-family: Iosevka Web; }*/ /* Light theme: Catppuccin Latte */ @@ -69,9 +68,6 @@ } /*}*/ -* { - font-family: var(--font-family); -} a { text-decoration: none;