Skip to content

Commit b66e9b4

Browse files
rsbhclaude
andauthored
fix: fallback to site description when page description missing (#149)
Pages without frontmatter description now use config.site.description for meta description, og:description, and twitter:description tags. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b1f6a10 commit b66e9b4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/chronicle/src/lib/head.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ export interface HeadProps {
99
markdownHref?: string;
1010
}
1111

12-
export function Head({ title, description, config, jsonLd, markdownHref }: HeadProps) {
12+
export function Head({ title, description: pageDescription, config, jsonLd, markdownHref }: HeadProps) {
1313
const { pathname } = useLocation();
14+
const description = pageDescription || config.site.description;
1415
const fullTitle = `${title} | ${config.site.title}`;
1516
const ogParams = new URLSearchParams({ title });
1617
if (description) ogParams.set('description', description);

0 commit comments

Comments
 (0)