diff --git a/src/app/[locale]/blogs/Create-3D-Text-with-the-Barbie-Font/page.tsx b/src/app/[locale]/blogs/Create-3D-Text-with-the-Barbie-Font/page.tsx index 7faed42..cfc331d 100644 --- a/src/app/[locale]/blogs/Create-3D-Text-with-the-Barbie-Font/page.tsx +++ b/src/app/[locale]/blogs/Create-3D-Text-with-the-Barbie-Font/page.tsx @@ -2,7 +2,6 @@ import Footer from "@/components/Footer"; import Header from "@/components/Header"; import { Box, Flex, } from "@radix-ui/themes"; import { useLocale } from "next-intl"; -import { blogs } from "../list"; import En from "./en"; import Zh from "./zh"; import { Locales } from "@/i18n/config"; @@ -12,9 +11,6 @@ export default function Page() { const locale = useLocale() as "en" | "zh"; - const blog = blogs.find(e => e.id == "Create-3D-Text-with-the-Barbie-Font")!; - - return (
diff --git a/src/app/[locale]/blogs/list.ts b/src/app/[locale]/blogs/list.ts index 0326143..bbf96eb 100644 --- a/src/app/[locale]/blogs/list.ts +++ b/src/app/[locale]/blogs/list.ts @@ -18,11 +18,13 @@ export const blogs = [ cover: "/next.svg", en: { title: "How to Create 3D Text with the Barbie Font", - summary: "这是第一篇博客的内容摘要...", + summary: + "Learn how to create 3D text with the Barbie font using free online tools. Step-by-step guide to download, convert, and render Barbie-style 3D text — no coding required!", }, zh: { title: "如何使用Barbie字体创建3D文本", - summary: "这是第一篇博客的内容摘要...", + summary: + "学习如何使用免费在线工具,以芭比字体创建 3D 文本。下载、转换和渲染芭比风格 3D 文本的分步指南 —— 无需编码!", }, }, ] satisfies BlogItem[]; diff --git a/src/app/sitemap.ts b/src/app/sitemap.ts index e1153f4..48f9a43 100644 --- a/src/app/sitemap.ts +++ b/src/app/sitemap.ts @@ -43,5 +43,31 @@ export default function sitemap(): MetadataRoute.Sitemap { changeFrequency: "monthly" as const, priority: 0.8, })), + + { + url: baseUrl + "/blogs", + lastModified: new Date(), + changeFrequency: "yearly", + priority: 1, + }, + ...locales.map((locale) => ({ + url: `${baseUrl}/${locale}/blogs`, + lastModified: new Date(), + changeFrequency: "monthly" as const, + priority: 0.8, + })), + + { + url: baseUrl + "/blogs/Create-3D-Text-with-the-Barbie-Font", + lastModified: new Date(), + changeFrequency: "yearly", + priority: 1, + }, + ...locales.map((locale) => ({ + url: `${baseUrl}/${locale}/blogs/Create-3D-Text-with-the-Barbie-Font`, + lastModified: new Date(), + changeFrequency: "monthly" as const, + priority: 0.8, + })), ]; } diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index 2f939b8..7ae88f4 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -10,9 +10,9 @@ export default function Footer() { return (