Add favicon

This commit is contained in:
augustin64 2024-04-08 12:18:12 +02:00
parent 6ebdd4e8ed
commit cf18eae3b1
3 changed files with 14 additions and 5 deletions

View File

@ -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("/<path>")
def handle_redirect(path):
path = path if path.startswith("/") else "/"+path
if not path.startswith("/app"):
return redirect("/app"+path, 301)
abort(404)

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View File

@ -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;