修改页面风格
This commit is contained in:
@@ -13,6 +13,7 @@ export type BlogPost = MarkdownModule & {
|
||||
tags: string[];
|
||||
categories: string[];
|
||||
summary: string;
|
||||
cover?: string;
|
||||
href: string;
|
||||
};
|
||||
|
||||
@@ -79,6 +80,7 @@ export function getAllPosts(): BlogPost[] {
|
||||
tags: asArray(module.frontmatter.tags),
|
||||
categories: asArray(module.frontmatter.categories),
|
||||
summary: makeSummary(module),
|
||||
cover: typeof module.frontmatter.cover === 'string' ? module.frontmatter.cover : undefined,
|
||||
href: `/posts/${slug}/`,
|
||||
};
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user