diff options
Diffstat (limited to 'process.py')
-rw-r--r-- | process.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |