diff --git a/.env.local b/.env.local index ce96b790..618efc87 100644 --- a/.env.local +++ b/.env.local @@ -1,2 +1,2 @@ # 环境变量 @see https://www.nextjs.cn/docs/basic-features/environment-variables -NEXT_PUBLIC_VERSION=3.6.4 \ No newline at end of file +NEXT_PUBLIC_VERSION=3.6.5 \ No newline at end of file diff --git a/package.json b/package.json index 6eb4edad..c9e3b948 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "notion-next", - "version": "3.6.4", + "version": "3.6.5", "homepage": "https://github.com/tangly1024/NotionNext.git", "license": "MIT", "repository": { diff --git a/styles/notion.css b/styles/notion.css index c85608a9..92acdb96 100644 --- a/styles/notion.css +++ b/styles/notion.css @@ -1993,3 +1993,7 @@ thead, tbody tr { width:100%; table-layout:fixed; } + +.notion-collection-card{ + @apply dark:hover:text-gray-200 +} \ No newline at end of file diff --git a/themes/example/components/ExampleRecentComments.js b/themes/example/components/ExampleRecentComments.js index 32d11463..e1fe86ca 100644 --- a/themes/example/components/ExampleRecentComments.js +++ b/themes/example/components/ExampleRecentComments.js @@ -1,7 +1,7 @@ import React from 'react' -import { RecentComments } from '@waline/client' import BLOG from '@/blog.config' import Link from 'next/link' +import { RecentComments } from '@waline/client' /** * @see https://waline.js.org/guide/get-started.html diff --git a/themes/example/components/SideBar.js b/themes/example/components/SideBar.js index 0e737fa3..ea45f851 100644 --- a/themes/example/components/SideBar.js +++ b/themes/example/components/SideBar.js @@ -2,7 +2,8 @@ import BLOG from '@/blog.config' import Live2D from '@/components/Live2D' import { useGlobal } from '@/lib/global' import Link from 'next/link' -import ExampleRecentComments from './ExampleRecentComments' +import dynamic from 'next/dynamic' +const ExampleRecentComments = dynamic(() => import('./ExampleRecentComments')) export const SideBar = (props) => { const { locale } = useGlobal() diff --git a/themes/fukasawa/config_fuka.js b/themes/fukasawa/config_fuka.js index 777ecf18..a10fe869 100644 --- a/themes/fukasawa/config_fuka.js +++ b/themes/fukasawa/config_fuka.js @@ -4,7 +4,6 @@ const FUKA_CONFIG = { POST_LIST_PREVIEW: false, // 显示文章预览 // 菜单 - MENU_ABOUT: true, // 显示关于 MENU_CATEGORY: true, // 显示分类 MENU_TAG: true, // 显示标签 MENU_ARCHIVE: true, // 显示归档 diff --git a/themes/hexo/components/HexoRecentComments.js b/themes/hexo/components/HexoRecentComments.js index 4977ccf4..d4cbacab 100644 --- a/themes/hexo/components/HexoRecentComments.js +++ b/themes/hexo/components/HexoRecentComments.js @@ -1,9 +1,9 @@ import React from 'react' -import { RecentComments } from '@waline/client' import BLOG from '@/blog.config' import Card from '@/themes/hexo/components/Card' import { useGlobal } from '@/lib/global' import Link from 'next/link' +import { RecentComments } from '@waline/client' /** * @see https://waline.js.org/guide/get-started.html diff --git a/themes/hexo/components/SideRight.js b/themes/hexo/components/SideRight.js index 8079fb2d..8680f144 100644 --- a/themes/hexo/components/SideRight.js +++ b/themes/hexo/components/SideRight.js @@ -6,9 +6,10 @@ import Catalog from './Catalog' import { InfoCard } from './InfoCard' import { AnalyticsCard } from './AnalyticsCard' import CONFIG_HEXO from '../config_hexo' -import HexoRecentComments from './HexoRecentComments' import BLOG from '@/blog.config' +import dynamic from 'next/dynamic' +const HexoRecentComments = dynamic(() => import('./HexoRecentComments')) /** * Hexo主题右侧栏 * @param {*} props diff --git a/themes/medium/config_medium.js b/themes/medium/config_medium.js index 23d6ac52..66fbc948 100644 --- a/themes/medium/config_medium.js +++ b/themes/medium/config_medium.js @@ -9,7 +9,6 @@ const CONFIG_MEDIUM = { POST_DETAIL_TAG: true, // 文章显示标签 // 菜单 - MENU_ABOUT: true, // 显示关于 MENU_CATEGORY: true, // 显示分类 MENU_TAG: true, // 显示标签 MENU_ARCHIVE: true, // 显示归档 diff --git a/themes/next/LayoutArchive.js b/themes/next/LayoutArchive.js index ce66e25f..3db36dbd 100644 --- a/themes/next/LayoutArchive.js +++ b/themes/next/LayoutArchive.js @@ -39,7 +39,7 @@ export const LayoutArchive = (props) => { return ( -
+
{Object.keys(archivePosts).map(archiveTitle => ( { const { allPosts, categories } = props const { locale } = useGlobal() return -
+
{locale.COMMON.CATEGORY}:
diff --git a/themes/next/LayoutTagIndex.js b/themes/next/LayoutTagIndex.js index d7fae64e..45100a9e 100644 --- a/themes/next/LayoutTagIndex.js +++ b/themes/next/LayoutTagIndex.js @@ -6,7 +6,7 @@ export const LayoutTagIndex = (props) => { const { tags } = props const { locale } = useGlobal() return -
+
{locale.COMMON.TAGS}:
{ tags.map(tag => { diff --git a/themes/next/components/BlogPostCard.js b/themes/next/components/BlogPostCard.js index 43ae9e65..e1bcd070 100644 --- a/themes/next/components/BlogPostCard.js +++ b/themes/next/components/BlogPostCard.js @@ -86,7 +86,7 @@ const BlogPostCard = ({ post, showSummary }) => {
- + {locale.COMMON.ARTICLE_DETAIL} diff --git a/themes/next/components/Footer.js b/themes/next/components/Footer.js index cb83aebe..3e90a5f5 100644 --- a/themes/next/components/Footer.js +++ b/themes/next/components/Footer.js @@ -14,7 +14,7 @@ const Footer = ({ title }) => { return (