docs site: page title without duplication on the landing page

This commit is contained in:
Andy Dixon
2026-07-10 19:18:01 +01:00
parent 6f3322f1ba
commit c89913072c
+2 -2
View File
@@ -92,7 +92,7 @@ HEAD = """<!doctype html>
<meta name="author" content="Andy Dixon">
<meta name="robots" content="noindex, nofollow">
<link rel="canonical" href="{canonical}">
<title>{title} | Noema | Andy Dixon</title>
<title>{titletag} | Andy Dixon</title>
<meta property="og:type" content="article">
<meta property="og:title" content="{title} | Noema">
<meta property="og:description" content="{desc}">
@@ -344,7 +344,7 @@ def render_page(idx, slug, title, summary, md):
{contents}
</div>'''
canonical = SITE + BASE + ("" if slug == "index" else slug)
page = HEAD.format(title=html.escape(title), desc=html.escape(summary), canonical=canonical, style=STYLE) + head_box + "\n".join(boxes) + nav_box + TAIL
page = HEAD.format(title=html.escape(title), titletag=html.escape(title if slug == "index" else title + " | Noema"), desc=html.escape(summary), canonical=canonical, style=STYLE) + head_box + "\n".join(boxes) + nav_box + TAIL
return page