gitbook 主题fix最近阅读

This commit is contained in:
tangly1024.com
2024-05-16 15:29:02 +08:00
parent 71701fa314
commit 59025e8018
6 changed files with 33 additions and 32 deletions

View File

@@ -92,7 +92,7 @@ export async function getStaticProps({
}
// 文章内容加载
if (!props?.posts?.blockMap) {
if (!props?.post?.blockMap) {
props.post.blockMap = await getPostBlocks(props.post.id, from)
}
// 生成全文索引 && JSON.parse(BLOG.ALGOLIA_RECREATE_DATA)

View File

@@ -81,7 +81,7 @@ export async function getStaticProps({ params: { prefix, slug }, locale }) {
}
// 文章内容加载
if (!props?.posts?.blockMap) {
if (!props?.post?.blockMap) {
props.post.blockMap = await getPostBlocks(props.post.id, from)
}
// 生成全文索引 && JSON.parse(BLOG.ALGOLIA_RECREATE_DATA)

View File

@@ -145,7 +145,7 @@ export async function getStaticProps({ params: { prefix }, locale }) {
}
// 文章内容加载
if (!props?.posts?.blockMap) {
if (!props?.post?.blockMap) {
props.post.blockMap = await getPostBlocks(props.post.id, from)
}