Fix blog page title showing post name twice
Some checks failed
Build and Deploy / build-and-deploy (push) Has been cancelled

Stop concatenating post title into base_title in route context.
Build proper "Post Title — Site Title" format in meta component instead.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-28 16:20:44 +00:00
parent c220fe21d6
commit 0df932bd94
4 changed files with 9 additions and 7 deletions

View File

@@ -125,7 +125,7 @@ def register(url_prefix, title):
ctx = {
**p_data,
"base_title": f"{get_config()['title']} {p_data['post']['title']}",
"base_title": get_config()["title"],
"container_nav_html": container_nav_html,
}

View File

@@ -78,7 +78,7 @@ def register():
ctx = {
**p_data,
"base_title": f"{config()['title']} {p_data['post']['title']}",
"base_title": config()["title"],
"container_nav_html": container_nav_html,
}