feat: 更新网站配置和内容,优化国际化设置
refactor: 重构产线页面和路由,移除无用代码 style: 调整内容格式和样式,统一中英文标点 docs: 更新产品描述和元数据,完善多语言支持
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user