feature:最新文章排序调整,适配夜间模式

This commit is contained in:
tangly1024
2021-11-03 16:24:58 +08:00
parent 3fcbb8a420
commit ab375a3cdc
3 changed files with 9 additions and 6 deletions

View File

@@ -1,6 +1,7 @@
import BLOG from '@/blog.config'
import { NotionAPI } from 'notion-client'
import { getDataFromCache, setDataToCache } from '@/lib/cache/cache_manager'
import { useRouter } from 'next/router'
export async function getPostBlocks (id, from) {
let pageBlock = await getDataFromCache('page_block_' + id)