[FE] allows configurable webpage title using --title
This commit is contained in:
parent
a746fa3758
commit
36228c3735
|
|
@ -130,6 +130,7 @@ def main(args):
|
||||||
database.set_image_output_folder(args.image_output_folder)
|
database.set_image_output_folder(args.image_output_folder)
|
||||||
database.connect(args.db)
|
database.connect(args.db)
|
||||||
|
|
||||||
|
app.config["TITLE"] = args.title
|
||||||
app.run(host="0.0.0.0", port=args.port)
|
app.run(host="0.0.0.0", port=args.port)
|
||||||
|
|
||||||
database.safe_disconnect()
|
database.safe_disconnect()
|
||||||
|
|
@ -146,6 +147,11 @@ if __name__ == "__main__":
|
||||||
"--db", type=str, default="happysd.db", help="Path to SQLite database file"
|
"--db", type=str, default="happysd.db", help="Path to SQLite database file"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Add an argument to set the title of service
|
||||||
|
parser.add_argument(
|
||||||
|
"--title", type=str, default="Happy Diffusion", help="Title of the webpage"
|
||||||
|
)
|
||||||
|
|
||||||
# Add an argument to set the path of the database file
|
# Add an argument to set the path of the database file
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--image-output-folder",
|
"--image-output-folder",
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
|
|
||||||
<title>Happy Diffusion (Private Access) | 9pm</title>
|
<title>{{ config.TITLE }}</title>
|
||||||
<meta name="description" content="Stable Diffusion Online">
|
<meta name="description" content="Stable Diffusion Online">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue