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 => ())}
-
-
*/} -