From 9d031041a1851acb62eadb060eb890f3b7218571 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Wed, 29 Sep 2021 13:36:03 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=95=B6=20=E6=96=87=E7=AB=A0=E9=A1=B5?= =?UTF-8?q?=E6=8E=92=E7=89=88=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/BlogPostMini.js | 6 +++--- layouts/ArticleLayout.js | 11 +++-------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/components/BlogPostMini.js b/components/BlogPostMini.js index 9955c5b8..92ed7e2f 100644 --- a/components/BlogPostMini.js +++ b/components/BlogPostMini.js @@ -3,10 +3,10 @@ import BLOG from '@/blog.config' const BlogPostMini = ({ post }) => { return ( + className='md:flex w-full border dark:border-gray-500 my-2 duration-200 transform hover:scale-105 hover:shadow-2xl bg-white dark:bg-gray-800 dark:hover:bg-gray-700'> {/* 封面图 */} {post.page_cover && post.page_cover.length > 1 && ( - {post.title} + {post.title} )}
@@ -15,7 +15,7 @@ const BlogPostMini = ({ post }) => { {post.title}

{post.summary}

-

{BLOG.link}/article/{post.slug}

+ {/*

{BLOG.link}/article/{post.slug}

*/}
) diff --git a/layouts/ArticleLayout.js b/layouts/ArticleLayout.js index ecefb559..997badaa 100644 --- a/layouts/ArticleLayout.js +++ b/layouts/ArticleLayout.js @@ -1,25 +1,20 @@ import TagItem from '@/components/TagItem' -import { NotionRenderer, Equation, Code, CollectionRow, Collection } from 'react-notion-x' +import { Code, Collection, CollectionRow, Equation, NotionRenderer } from 'react-notion-x' import BLOG from '@/blog.config' import formatDate from '@/lib/formatDate' import 'gitalk/dist/gitalk.css' import Comment from '@/components/Comment' import CommonHead from '@/components/CommonHead' -import TopNav from '@/components/TopNav' import Progress from '@/components/Progress' import { useRef } from 'react' import Image from 'next/image' -import Footer from '@/components/Footer' -import RightAside from '@/components/RightAside' import RewardButton from '@/components/RewardButton' -import RightWidget from '@/components/RightWidget' import { useTheme } from '@/lib/theme' import SideBar from '@/components/SideBar' import BlogPostMini from '@/components/BlogPostMini' import { useRouter } from 'next/router' import ShareButton from '@/components/ShareButton' import TopJumper from '@/components/TopJumper' -import TocBar from '@/components/TocBar' const mapPageUrl = id => { return 'https://www.notion.so/' + id.replace(/-/g, '') @@ -56,7 +51,7 @@ const ArticleLayout = ({ {/* 主体区块 */} -
+
{/* 中央区域 wrapper */}
@@ -156,7 +151,7 @@ const ArticleLayout = ({
继续阅读
-
+
{/* */} {/*
上一篇:{prev.title}
*/} {/* */}