Fix blog page title showing post name twice
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:
@@ -31,10 +31,10 @@
|
||||
(when html-content (div :class "blog-content p-2" (raw! html-content))))
|
||||
(div :class "pb-8")))
|
||||
|
||||
(defcomp ~blog-meta (&key robots base-title desc canonical og-type og-title image twitter-card twitter-title)
|
||||
(defcomp ~blog-meta (&key robots page-title desc canonical og-type og-title image twitter-card twitter-title)
|
||||
(<>
|
||||
(meta :name "robots" :content robots)
|
||||
(title base-title)
|
||||
(title page-title)
|
||||
(meta :name "description" :content desc)
|
||||
(when canonical (link :rel "canonical" :href canonical))
|
||||
(meta :property "og:type" :content og-type)
|
||||
|
||||
Reference in New Issue
Block a user