Skip to content

Commit

Permalink
Fix some issue
Browse files Browse the repository at this point in the history
  • Loading branch information
noobnooc committed Sep 2, 2024
1 parent 858e1dd commit a1b9a4b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions app/[lang]/posts/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,20 @@ export async function generateMetadata({
return {
metadataBase: new URL(dictionary.meta.baseUrl),
title: post.title,
description: post.title,
description: post.description,
keywords: dictionary.meta.fillKeywords(post.keywords),
openGraph: {
type: "article",
title: post.title,
description: post.title,
images: "/static/banner.png",
description: post.description,
images: post.cover?.src ?? "/static/banner.png",
},
twitter: {
title: post.title,
description: post.title,
description: post.description,
site: "@noobnooc",
card: "summary_large_image",
images: "/static/banner.png",
images: post.cover?.src ?? "/static/banner.png",
},
};
}
Expand Down
2 changes: 1 addition & 1 deletion app/[lang]/posts/categories/[categorySlug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default async function CategoryPostsPage({
key={post.slug}
className="rounded-3xl p-4 border bg-white/50 dark:bg-indigo-100/5 flex flex-col gap-2"
>
<Link href={post.seoLink}>
<Link className="underline" href={post.seoLink}>
<h1 className="text-xl font-serif">{post.title}</h1>
</Link>
<p className="opacity-70">{post.description}</p>
Expand Down
2 changes: 1 addition & 1 deletion app/[lang]/posts/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default async function PostsPage({
key={post.slug}
className="rounded-3xl p-4 sm:px-8 border bg-white/50 dark:bg-indigo-100/5 flex flex-col gap-2"
>
<Link href={post.seoLink}>
<Link className="underline" href={post.seoLink}>
<h1 className="text-xl font-serif">{post.title}</h1>
</Link>
<p className="opacity-70">{post.description}</p>
Expand Down

0 comments on commit a1b9a4b

Please sign in to comment.