Add favicon
This commit is contained in:
parent
6ebdd4e8ed
commit
cf18eae3b1
@ -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)
|
||||
|
BIN
isbn_sort/static/favicon.ico
Normal file
BIN
isbn_sort/static/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user