Fix blog page title showing post name twice
Some checks failed
Build and Deploy / build-and-deploy (push) Has been cancelled
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:
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user