feat: 更新网站配置和内容,优化国际化设置

refactor: 重构产线页面和路由,移除无用代码
style: 调整内容格式和样式,统一中英文标点
docs: 更新产品描述和元数据,完善多语言支持
This commit is contained in:
砂糖
2026-01-26 16:22:07 +08:00
parent 8e4f76f9e0
commit 99ce2b7fb8
20 changed files with 100 additions and 369 deletions

View File

@@ -12,9 +12,12 @@ export async function getLines(locale: string): Promise<Line[]> {
for (const file of files.map((file) => file.replace('.mdx', ''))) {
const contentPath = path.join(process.cwd(), `content/lines/${locale}/${file}.mdx`);
const fileContent = fs.readFileSync(contentPath, 'utf8');
// console.log(fileContent);
const { data: frontmatter, content } = matter(fileContent);
console.log(frontmatter);
workShops.push(frontmatter as Line);
}
console.log(workShops, files);
return workShops;
}