Skip to content

Commit

Permalink
Another attempt to fix Metadata Generator
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin0216 authored Oct 28, 2023
1 parent 94edb86 commit 4cf12f3
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion app/blog/tags/[slug]/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import type { Metadata } from "next";
import type { ReactNode } from "react";
import { RollButton } from "next-docs-ui/components/roll-button";

export function generateMetadata({
params,
Expand Down Expand Up @@ -27,4 +29,14 @@ export function generateMetadata({
"仰望星空科普專案介紹,為你帶來不同以往的科普體驗,重拾愛好自然與科學之心,讓我們一起徜徉在浩瀚星河中吧!",
},
};
}

export default function TagLayout({ children }: { children: ReactNode }) {
return (
<>
<div className="container">
<RollButton />
{children}
</div>
</>
);
}

0 comments on commit 4cf12f3

Please sign in to comment.