magzine seo

This commit is contained in:
tangly1024
2024-09-22 13:37:22 +08:00
parent 6d01c580b4
commit 6b4ed379f5
6 changed files with 9 additions and 3 deletions

View File

@@ -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 (
<div id='info-card'>
@@ -16,7 +18,7 @@ const InfoCard = props => {
<div
className='hover:scale-105 transform duration-200 cursor-pointer flex justify-start'
onClick={() => {
Router.push('/about')
router.push('/about')
}}>
<LazyImage
src={siteInfo?.icon}

View File

@@ -2,7 +2,6 @@ import { siteConfig } from '@/lib/config'
import Link from 'next/link'
export default function LogoBar(props) {
const { siteInfo } = props
return (
<div id='top-wrapper' className='w-full flex items-center '>
<Link

View File

@@ -46,6 +46,7 @@ const PostGroupLatest = props => {
className={'my-3 flex'}>
<div className='w-20 h-14 overflow-hidden relative'>
<LazyImage
alt={post?.title}
src={`${headerImage}`}
className='object-cover w-full h-full'
/>

View File

@@ -25,6 +25,7 @@ const PostItemCard = ({ post }) => {
}>
<div className='w-full h-40 aspect-video overflow-hidden mb-2'>
<LazyImage
alt={post?.title}
src={cover}
style={cover ? {} : { height: '0px' }}
className='w-full h-40 aspect-video object-cover'

View File

@@ -33,6 +33,8 @@ const PostItemCardTop = ({ post, showSummary }) => {
}>
<div className='w-full max-h-80 object-cover overflow-hidden mb-2'>
<LazyImage
priority
alt={post?.title}
src={post.pageCoverThumbnail}
style={post.pageCoverThumbnail ? {} : { height: '0px' }}
className='w-full max-h-80 object-cover hover:scale-125 duration-150'

View File

@@ -60,7 +60,7 @@ const PostItemCardWide = ({ post, showSummary }) => {
<div
className={
'flex items-center justify-start flex-wrap space-x-3 text-gray-400'
'flex items-center justify-start flex-wrap space-x-3 text-gray-500'
}>
{/* {siteConfig('MAGZINE_POST_LIST_TAG') &&
post?.tagItems?.map(tag => (
@@ -73,6 +73,7 @@ const PostItemCardWide = ({ post, showSummary }) => {
{/* 卡牌右侧图片 */}
<div className='w-40 h-40 object-cover overflow-hidden mb-2'>
<LazyImage
alt={post?.title}
src={post.pageCoverThumbnail}
style={post.pageCoverThumbnail ? {} : { height: '0px' }}
className='w-40 h-40 object-cover hover:scale-125 duration-150'