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 secrets
|
||||||
|
import os
|
||||||
|
|
||||||
from .app import bp as app_bp
|
from .app import bp as app_bp
|
||||||
|
|
||||||
@ -10,8 +11,20 @@ app.config["SECRET_KEY"] = secrets.token_hex()
|
|||||||
|
|
||||||
app.register_blueprint(app_bp)
|
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>")
|
@app.route("/<path>")
|
||||||
def handle_redirect(path):
|
def handle_redirect(path):
|
||||||
|
path = path if path.startswith("/") else "/"+path
|
||||||
if not path.startswith("/app"):
|
if not path.startswith("/app"):
|
||||||
return redirect("/app"+path, 301)
|
return redirect("/app"+path, 301)
|
||||||
abort(404)
|
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-mantle: #181825;
|
||||||
--color-crust: #11111b;
|
--color-crust: #11111b;
|
||||||
--color-action: #333d5d;
|
--color-action: #333d5d;
|
||||||
--font-family: Iosevka Web;
|
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
/* Light theme: Catppuccin Latte */
|
/* Light theme: Catppuccin Latte */
|
||||||
@ -69,9 +68,6 @@
|
|||||||
}
|
}
|
||||||
/*}*/
|
/*}*/
|
||||||
|
|
||||||
* {
|
|
||||||
font-family: var(--font-family);
|
|
||||||
}
|
|
||||||
|
|
||||||
a {
|
a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user