修复错误单词,修复slug页错误的allPosts
This commit is contained in:
tangly1024
2021-11-04 14:06:32 +08:00
parent 3cb42c5ea9
commit 40db3aae2b
5 changed files with 14 additions and 12 deletions

View File

@@ -2,7 +2,7 @@ import React from 'react'
import MenuButtonGroup from '@/components/MenuButtonGroup'
import InfoCard from '@/components/InfoCard'
import TagList from '@/components/TagList'
import LastedPosts from '@/components/LastedPosts'
import LatestPosts from '@/components/LatestPosts'
const SideBar = ({ tags, currentTag, post, posts }) => {
// 按时间排序
@@ -29,7 +29,7 @@ const SideBar = ({ tags, currentTag, post, posts }) => {
{/* 最新文章 */}
{posts && (
<div className='mt-2'>
<LastedPosts posts={posts}/>
<LatestPosts posts={posts}/>
</div>
)}