diff options
author | metamuffin <metamuffin@disroot.org> | 2025-10-04 14:39:11 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-10-04 14:39:11 +0200 |
commit | 26a0fc6da7487f4ab1d872cc8f9419dea9353548 (patch) | |
tree | d6c8cb1e4bb422771350c90b38604d2181730e23 | |
parent | 9d60f74ede0210a188c99c1b47db907893b7cc59 (diff) | |
download | metamuffin-website-master.tar metamuffin-website-master.tar.bz2 metamuffin-website-master.tar.zst |
Fix title on index pagemaster
-rw-r--r-- | process.py | 2 | ||||
-rw-r--r-- | template.html | 2 |
2 files changed, 2 insertions, 2 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) diff --git a/template.html b/template.html index c8b7550..80fea2d 100644 --- a/template.html +++ b/template.html @@ -1,6 +1,6 @@ <html lang="en"> <head> - <title>TITLE - metamuffin's website</title> + <title>TITLE</title> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="description" content="metamuffin's personal website" /> |