Skip to content

Commit

Permalink
Update tag layout and generate metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
thebkht committed Nov 29, 2023
1 parent 81903b3 commit b3f7741
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
13 changes: 0 additions & 13 deletions app/(Main)/tags/[tagname]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,6 @@ export async function generateMetadata(
}
}

const tags = await postgres.tag.findMany({
orderBy: {
posts: {
_count: 'desc'
}
}
});
//add href to tags
tags.forEach((tag: any) => {
tag.href = `/tags/${tag.name}`;
}
)

export default async function TagLayout({ children, params }: Props) {
return (
<>
Expand Down
4 changes: 2 additions & 2 deletions app/(Main)/tags/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { SiteFooter } from "@/components/footer";
import { Metadata } from "next"

export const metadata: Metadata = {
title: 'Explore topics on FalseNotes',
description: 'Explore topics on FalseNotes',
title: 'Explore tags on FalseNotes',
description: 'Explore tags on FalseNotes',
}


Expand Down

0 comments on commit b3f7741

Please sign in to comment.