's'
This commit is contained in:
27
app/topic/[topicId]/layout.tsx
Normal file
27
app/topic/[topicId]/layout.tsx
Normal file
@@ -0,0 +1,27 @@
|
||||
import type { Metadata } from "next";
|
||||
|
||||
export async function generateMetadata({
|
||||
params,
|
||||
}: {
|
||||
params: Promise<{ topicId: string }>;
|
||||
}): Promise<Metadata> {
|
||||
const { topicId } = await params;
|
||||
const titles: Record<string, string> = {
|
||||
cloudphone: "云手机模块 | 低成本自建云手机",
|
||||
livestream: "无人直播模块 | TikTok/YouTube 24小时自动化",
|
||||
indie: "独立开发模块 | 即将上线",
|
||||
aiagent: "AI Agent 模块 | 即将上线",
|
||||
};
|
||||
return {
|
||||
title: titles[topicId] ?? "模块 | 异度星球",
|
||||
description: "异度星球 VIP 会员专属视频教程模块",
|
||||
};
|
||||
}
|
||||
|
||||
export default function TopicLayout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return <>{children}</>;
|
||||
}
|
||||
Reference in New Issue
Block a user