From 6b4ed379f590f576eeebcca37324995de5bebeaa Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Sun, 22 Sep 2024 13:37:22 +0800 Subject: [PATCH] magzine seo --- themes/magzine/components/InfoCard.js | 4 +++- themes/magzine/components/LogoBar.js | 1 - themes/magzine/components/PostGroupLatest.js | 1 + themes/magzine/components/PostItemCard.js | 1 + themes/magzine/components/PostItemCardTop.js | 2 ++ themes/magzine/components/PostItemCardWide.js | 3 ++- 6 files changed, 9 insertions(+), 3 deletions(-) diff --git a/themes/magzine/components/InfoCard.js b/themes/magzine/components/InfoCard.js index e6009de1..35dd21d2 100644 --- a/themes/magzine/components/InfoCard.js +++ b/themes/magzine/components/InfoCard.js @@ -1,6 +1,7 @@ import LazyImage from '@/components/LazyImage' import { siteConfig } from '@/lib/config' import { useGlobal } from '@/lib/global' +import { useRouter } from 'next/router' /** * 用户信息卡 @@ -9,6 +10,7 @@ import { useGlobal } from '@/lib/global' */ const InfoCard = props => { const { siteInfo } = useGlobal() + const router = useRouter() return (
@@ -16,7 +18,7 @@ const InfoCard = props => {
{ - Router.push('/about') + router.push('/about') }}> { className={'my-3 flex'}>
diff --git a/themes/magzine/components/PostItemCard.js b/themes/magzine/components/PostItemCard.js index 632b0273..09a9352a 100644 --- a/themes/magzine/components/PostItemCard.js +++ b/themes/magzine/components/PostItemCard.js @@ -25,6 +25,7 @@ const PostItemCard = ({ post }) => { }>
{ }>
{
{/* {siteConfig('MAGZINE_POST_LIST_TAG') && post?.tagItems?.map(tag => ( @@ -73,6 +73,7 @@ const PostItemCardWide = ({ post, showSummary }) => { {/* 卡牌右侧图片 */}