chore(theme): remove old options

This commit is contained in:
pengzhanbo 2023-02-15 03:54:31 +08:00
parent a15d067d9b
commit e834e621c2
4 changed files with 7 additions and 8 deletions

View File

@ -59,6 +59,12 @@ export const setupPlugins = (
].filter(Boolean),
sortBy: 'createTime',
excerpt: true,
pageFilter(page: any) {
if (page.frontmatter.article !== undefined) {
return !!page.frontmatter.article
}
return true
},
extendBlogData(page: any) {
return {
categoryList: page.data.categoryList,

View File

@ -13,11 +13,8 @@ export async function setupPage(
const blogPage = await createPage(app, {
path: localeOption.blog?.link,
})
const productPage = await createPage(app, {
path: '/product/',
})
app.pages.push(blogPage, productPage)
app.pages.push(blogPage)
}
let uuid = 10000

View File

@ -39,9 +39,6 @@ export const plumeTheme = ({
) {
page.data.type = 'blog'
}
if (page.path === '/product/') {
page.data.type = 'product'
}
autoCategory(page, localeOptions)
pageContentRendered(page)
},

View File

@ -21,7 +21,6 @@ export interface PlumeThemePostFrontmatter {
sticky?: boolean | number
article?: boolean
banner?: string
bgBanner?: string
}
export interface PlumeThemeNoteFrontmatter {