refactor: NEXT 主题配置规整

This commit is contained in:
tangly1024
2022-01-16 09:23:00 +08:00
parent 8be7389462
commit 4909557397
26 changed files with 132 additions and 316 deletions

View File

@@ -28,7 +28,7 @@ export async function getStaticProps () {
)
for (const i in postsToShow) {
const post = postsToShow[i]
const blockMap = await getPostBlocks(post.id, 'slug', BLOG.home.previewLines)
const blockMap = await getPostBlocks(post.id, 'slug', BLOG.previewLines)
if (blockMap) {
post.blockMap = blockMap
}

View File

@@ -44,7 +44,7 @@ export async function getStaticProps ({ params: { page } }) {
for (const i in postsToShow) {
const post = postsToShow[i]
const blockMap = await getPostBlocks(post.id, 'slug', BLOG.home.previewLines)
const blockMap = await getPostBlocks(post.id, 'slug', BLOG.previewLines)
if (blockMap) {
post.blockMap = blockMap
}