From 26a0fc6da7487f4ab1d872cc8f9419dea9353548 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 4 Oct 2025 14:39:11 +0200 Subject: Fix title on index page --- process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'process.py') diff --git a/process.py b/process.py index c9db002..e2b9051 100644 --- a/process.py +++ b/process.py @@ -23,7 +23,7 @@ def run_pi(input: str) -> str: def template(input: str) -> str: RE_TITLE = r"

(?P.*?)</h1>" title_match = re.match(RE_TITLE, input) - title = title_match.group(1) if title_match != None else "no title :(" + title = f"{title_match.group(1)} - metamuffin's website" if title_match != None else "metamuffin's website" tpl = open("template.html", "r").read() return tpl.replace("CONTENT", input).replace("TITLE", title) -- cgit v1.2.3-70-g09d2