diff --git a/blog.config.js b/blog.config.js index 90380c68..4a65d435 100644 --- a/blog.config.js +++ b/blog.config.js @@ -79,7 +79,7 @@ const BLOG = { ADSENSE_GOOGLE_ID: process.env.NEXT_PUBLIC_ADSENSE_GOOGLE_ID || '', // 谷歌广告ID e.g ca-pub-xxxxxxxxxxxxxxxx isProd: process.env.VERCEL_ENV === 'production', // distinguish between development and production environment (ref: https://vercel.com/docs/environment-variables#system-environment-variables) isProd: process.env.VERCEL_ENV === 'production' // distinguish between development and production environment (ref: https://vercel.com/docs/environment-variables#system-environment-variables) - VERSION: '2.8.2' // 版本号 + VERSION: '2.8.3' // 版本号 } module.exports = BLOG diff --git a/lib/notion/getNotionData.js b/lib/notion/getNotionData.js index 8fd9db59..4e03cfc0 100644 --- a/lib/notion/getNotionData.js +++ b/lib/notion/getNotionData.js @@ -83,6 +83,7 @@ export async function getNotionPageData ({ pageId, from }) { const pageRecordMap = await getPageRecordMapByNotionAPI({ pageId, from }) // 存入缓存 if (pageRecordMap) { + console.log('[站点数据]', pageRecordMap) await setDataToCache(cacheKey, pageRecordMap) } return pageRecordMap diff --git a/next.config.js b/next.config.js index a95a5974..df99d7ac 100644 --- a/next.config.js +++ b/next.config.js @@ -3,7 +3,7 @@ module.exports = { webpack5: true }, images: { - domains: ['gravatar.com', 'www.notion.so', 'avatars.githubusercontent.com'] + domains: ['gravatar.com', 'www.notion.so', 'avatars.githubusercontent.com', 'images.unsplash.com'] // 允许next/image加载的图片 域名 }, async headers () { return [ diff --git a/package.json b/package.json index d4f5c5d6..96f313f0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "notion-next", - "version": "2.8.2", + "version": "2.8.3", "homepage": "https://github.com/tangly1024/NotionNext.git", "license": "MIT", "repository": { diff --git a/themes/fukasawa/components/BlogCard.js b/themes/fukasawa/components/BlogCard.js index fbe866bf..05f8b3c2 100644 --- a/themes/fukasawa/components/BlogCard.js +++ b/themes/fukasawa/components/BlogCard.js @@ -1,5 +1,4 @@ import BLOG from '@/blog.config' -import Image from 'next/image' import Link from 'next/link' import React from 'react' import CONFIG_FUKA from '../config_fuka' @@ -26,7 +25,9 @@ const BlogCard = ({ post, showSummary }) => { {CONFIG_FUKA.POST_LIST_COVER && post?.page_cover && (
- {post.title} + {/* eslint-disable-next-line @next/next/no-img-element */} + {post.title} + {/* {post.title} */}
)} diff --git a/themes/hexo/components/BlogPostCard.js b/themes/hexo/components/BlogPostCard.js index 60b5ba64..13e63e4c 100644 --- a/themes/hexo/components/BlogPostCard.js +++ b/themes/hexo/components/BlogPostCard.js @@ -1,5 +1,4 @@ import BLOG from '@/blog.config' -import Image from 'next/image' import Link from 'next/link' import React from 'react' import { Code, Collection, CollectionRow, Equation, NotionRenderer } from 'react-notion-x' @@ -60,8 +59,8 @@ const BlogPostCard = ({ post, showSummary }) => { {/* eslint-disable-next-line @next/next/no-img-element */} - {/* {post.title} */} - {post.title} + {post.title} + {/* {post.title} */} )}