From d0c1984776d4fcb208e0abee0d48105593eb468e Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Thu, 27 Jan 2022 18:04:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/Medium/LayoutPage.js | 7 ++++--- themes/Medium/components/BlogPostCard.js | 18 ++---------------- 2 files changed, 6 insertions(+), 19 deletions(-) diff --git a/themes/Medium/LayoutPage.js b/themes/Medium/LayoutPage.js index d4355d46..0c6640c8 100644 --- a/themes/Medium/LayoutPage.js +++ b/themes/Medium/LayoutPage.js @@ -1,8 +1,9 @@ -import LayoutBase from '../Hexo/LayoutBase' +import LayoutBase from './LayoutBase' +import BlogPostListPage from './components/BlogPostListPage' export const LayoutPage = (props) => { - const { page } = props + const { page, posts, postCount } = props return - Page - {page} + } diff --git a/themes/Medium/components/BlogPostCard.js b/themes/Medium/components/BlogPostCard.js index 3b63256e..a9e1ee5c 100644 --- a/themes/Medium/components/BlogPostCard.js +++ b/themes/Medium/components/BlogPostCard.js @@ -1,12 +1,11 @@ import BLOG from '@/blog.config' -import { faAngleRight, faFolder } from '@fortawesome/free-solid-svg-icons' +import { useGlobal } from '@/lib/global' +import { faAngleRight } from '@fortawesome/free-solid-svg-icons' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import Link from 'next/link' import React from 'react' import { Code, Collection, CollectionRow, Equation, NotionRenderer } from 'react-notion-x' -import TagItemMini from './TagItemMini' import CONFIG_MEDIUM from '../config_medium' -import { useGlobal } from '@/lib/global' const BlogPostCard = ({ post, showSummary }) => { const showPreview = CONFIG_MEDIUM.POST_LIST_PREVIEW && post.blockMap @@ -52,19 +51,6 @@ const BlogPostCard = ({ post, showSummary }) => { } - - {/*
- - - - {post.category} - - -
-
{post.tagItems.map(tag => ())}
-
-
*/} -