首页、文章页背景色微调;
侧边抽屉完善;
标签组长度调整;
最近文章日期格式化,增加路由高亮,封装;
清除冗余代码;
This commit is contained in:
tangly1024
2021-11-03 17:40:19 +08:00
parent ab375a3cdc
commit 255a774e1c
11 changed files with 125 additions and 54 deletions

View File

@@ -7,13 +7,13 @@ import Drawer from '@/components/Drawer'
import DrawerRight from '@/components/DrawerRight'
import Logo from '@/components/Logo'
const TopNav = ({ tags, currentTag, post }) => {
const TopNav = ({ tags, currentTag, post, posts }) => {
const drawer = useRef()
const drawerRight = useRef()
return (<>
{/* 侧面抽屉 */}
<Drawer post={post} currentTag={currentTag} cRef={drawer} tags={tags} />
<Drawer post={post} currentTag={currentTag} cRef={drawer} tags={tags} posts={posts}/>
<DrawerRight post={post} cRef={drawerRight}/>
{/* 导航栏 */}