Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ test-results/
playwright-report/
tests/
sidebar-final-audit/
codedb.snapshot

# AI Assistants
/.claude/
Expand Down
6 changes: 3 additions & 3 deletions app/blog/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default async function BlogPostPage(props: PageProps) {
image:
post.ogMetaImage ?? post.ogImage ?? ogImageUrl({ title: post.title, type: 'blog' }),
datePublished: new Date(date).toISOString(),
authorName: (post as any).author,
authorName: post.author,
}),
breadcrumbSchema([
{ name: 'Blog', url: '/blog' },
Expand Down Expand Up @@ -71,7 +71,7 @@ export default async function BlogPostPage(props: PageProps) {
day: 'numeric',
})}
</time>
{(post as any).author && <span>by {(post as any).author}</span>}
{post.author && <span>by {post.author}</span>}
</div>
{post.ogImage && (
<Image
Expand Down Expand Up @@ -124,7 +124,7 @@ export async function generateMetadata(props: PageProps): Promise<Metadata> {
type: 'article',
url: `/blog/${params.slug}`,
publishedTime,
authors: (post as any).author ? [(post as any).author] : undefined,
authors: post.author ? [post.author] : undefined,
images: [ogImage],
},
}
Expand Down
4 changes: 2 additions & 2 deletions app/blog/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ export default function BlogPage() {
date: iso,
dateFormatted: dateFormatter.format(new Date(iso + 'T00:00:00Z')),
url: `/blog/${getSlug(post._file.path)}`,
author: (post as any).author,
author: post.author,
ogImage: post.ogImage,
ogImagePosition: (post as any).ogImagePosition,
ogImagePosition: post.ogImagePosition,
})
}

Expand Down
8 changes: 4 additions & 4 deletions app/changelog/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default async function ChangelogDetailPage(props: PageProps) {
headline: entry.title,
description: entry.description,
url: `/changelog/${params.slug}`,
image: (entry as any).ogImage ?? ogImageUrl({ title: entry.title, type: 'changelog' }),
image: entry.ogImage ?? ogImageUrl({ title: entry.title, type: 'changelog' }),
datePublished: new Date(date).toISOString(),
}),
breadcrumbSchema([
Expand Down Expand Up @@ -67,9 +67,9 @@ export default async function ChangelogDetailPage(props: PageProps) {
day: 'numeric',
})}
</time>
{(entry as any).version && (
{entry.version && (
<span className="rounded-full bg-muted px-2.5 py-0.5 text-xs font-medium">
v{(entry as any).version}
v{entry.version}
</span>
)}
</div>
Expand All @@ -93,7 +93,7 @@ export async function generateMetadata(props: PageProps): Promise<Metadata> {
const entry = findEntry(params.slug)
if (!entry) notFound()

const ogImage = (entry as any).ogImage ?? ogImageUrl({ title: entry.title, type: 'changelog' })
const ogImage = entry.ogImage ?? ogImageUrl({ title: entry.title, type: 'changelog' })

return {
title: entry.title,
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.tsbuildinfo

Large diffs are not rendered by default.

Loading