mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-22 23:16:48 +00:00
frame-work lib/db
This commit is contained in:
@@ -12,6 +12,7 @@ import { getConfigMapFromConfigPage } from '@/lib/notion/getNotionConfig'
|
||||
|
||||
export { getAllTags } from '../notion/getAllTags'
|
||||
export { getPostBlocks } from '../notion/getPostBlocks'
|
||||
export { getPost } from '../notion/getNotionPost'
|
||||
|
||||
/**
|
||||
* 获取博客数据; 基于Notion实现
|
||||
|
||||
@@ -9,7 +9,7 @@ import { defaultMapImageUrl } from 'react-notion-x'
|
||||
* @param {*} pageId
|
||||
* @returns
|
||||
*/
|
||||
export async function getNotion(pageId) {
|
||||
export async function getPost(pageId) {
|
||||
const blockMap = await getPostBlocks(pageId, 'slug')
|
||||
if (!blockMap) {
|
||||
return null
|
||||
Reference in New Issue
Block a user