Skip to content

Commit

Permalink
Small updates to blog. (#900)
Browse files Browse the repository at this point in the history
  • Loading branch information
leerob authored Apr 9, 2024
1 parent b753abb commit 81d8640
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions solutions/blog/app/blog/[slug]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import type { Metadata } from 'next'
import { notFound } from 'next/navigation'
import { CustomMDX } from 'app/components/mdx'
import { formatDate, getBlogPosts } from 'app/blog/utils'
Expand All @@ -12,9 +11,7 @@ export async function generateStaticParams() {
}))
}

export async function generateMetadata({
params,
}): Promise<Metadata | undefined> {
export function generateMetadata({ params }) {
let post = getBlogPosts().find((post) => post.slug === params.slug)
if (!post) {
return
Expand Down
1 change: 0 additions & 1 deletion solutions/blog/app/robots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@ export default function robots() {
},
],
sitemap: `${baseUrl}/sitemap.xml`,
host: `${baseUrl}`,
}
}

0 comments on commit 81d8640

Please sign in to comment.