summaryrefslogtreecommitdiff
path: root/process.py
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-10-04 14:39:11 +0200
committermetamuffin <metamuffin@disroot.org>2025-10-04 14:39:11 +0200
commit26a0fc6da7487f4ab1d872cc8f9419dea9353548 (patch)
treed6c8cb1e4bb422771350c90b38604d2181730e23 /process.py
parent9d60f74ede0210a188c99c1b47db907893b7cc59 (diff)
downloadmetamuffin-website-26a0fc6da7487f4ab1d872cc8f9419dea9353548.tar
metamuffin-website-26a0fc6da7487f4ab1d872cc8f9419dea9353548.tar.bz2
metamuffin-website-26a0fc6da7487f4ab1d872cc8f9419dea9353548.tar.zst
Fix title on index pagemaster
Diffstat (limited to 'process.py')
-rw-r--r--process.py2
1 files changed, 1 insertions, 1 deletions
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"<h1>(?P<title>.*?)</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)