添加sitemap

This commit is contained in:
ymk
2025-08-05 10:28:00 +08:00
parent 9d3824006b
commit b6705d5155
4 changed files with 34 additions and 10 deletions

View File

@@ -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 (
<Flex direction={"column"} gap={"4"}>
<Header />

View File

@@ -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[];

View File

@@ -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,
})),
];
}

View File

@@ -10,9 +10,9 @@ export default function Footer() {
return (
<footer className="w-full border-t backdrop-blur-sm bg-background/95 ">
<Flex justify={"between"} align={"center"} direction={"column"} gap={"2"} p="2">
<Flex justify={"center"} gap={"8"} className="w-full">
<Flex justify={"center"} gap={"8"} className="w-full align-top" >
<Flex gap={"2"} direction={"column"}>
<Flex gap={"2"} direction={"column"} >
<Heading as="h2" size="4">Tools</Heading>
<Link
href={`/${locale}/editor`}
@@ -35,13 +35,13 @@ export default function Footer() {
</Flex>
<Flex gap={"2"} direction={"column"}>
<Flex gap={"2"} direction={"column"} >
<Heading as="h2" size="4">Resources</Heading>
<Link
href="https://gero3.github.io/facetype.js/"
className="text-sm text-muted-foreground hover:text-primary"
>
Converter From .ttf to .json
Converter: From .ttf To .json
</Link>
<Link
href="/do-not-write-on-this-page"