Put personal pages into subdomains

This commit is contained in:
Sweetbread committed 2026-01-17 23:51:32 +03:00
1 parent aedd47ba36
commit 4b2720f8b7
36 files changed
+106 -35

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
from htmlmin import minify
from flask import Blueprint, render_template, request, jsonify
bp = Blueprint(
"root",
__name__,
template_folder="templates",
static_folder="static"
)
def render_tmpl(filename: str) -> str:
return minify(
render_template(filename),
remove_empty_space=True
)
@bp.route("/")
def index():
return render_tmpl('index.html')
@bp.route("/host")
def host():
return render_tmpl('host.html')
@bp.route("/us")
def us():
return render_tmpl('us.html')