feat: 更新产品图片和内容,优化首页展示
- 新增产品线相关图片资源 - 更新中英文产品内容中的图片引用路径 - 简化首页标题并移除应用领域板块 - 优化产品中心展示内容 - 更新公司描述信息
This commit is contained in:
@@ -12,12 +12,9 @@ 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