fix(seo): 修复页面标题公司名重复与品牌名繁简体不一致问题
- 新增 COMPANY_INFO.displayName 属性用于页面标题和SEO元数据 - 统一所有页面 metadata 使用 displayName(简体"睿新致远") - 视觉展示元素保留 shortName(繁体"睿新致遠"配合青柳隷書字体) - 修复关于/联系/团队页面标题中公司名重复出现的问题 - 修复新闻ID从数字改为SEO友好slug - 更新结构化数据使用完整公司名 - 修复ESLint报错:引号转义、组件displayName、any类型替换
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
import { useRef, useState, useCallback, type ReactNode } from 'react';
|
||||
import { motion } from 'framer-motion';
|
||||
import { StaticLink } from '@/components/ui/static-link';
|
||||
|
||||
interface InkGlowCardProps {
|
||||
children: ReactNode;
|
||||
@@ -33,7 +34,7 @@ export function InkGlowCard({
|
||||
const [isHovered, setIsHovered] = useState(false);
|
||||
|
||||
const handleMouseMove = useCallback((e: React.MouseEvent) => {
|
||||
if (!cardRef.current) return;
|
||||
if (!cardRef.current) {return;}
|
||||
const rect = cardRef.current.getBoundingClientRect();
|
||||
setMousePos({
|
||||
x: e.clientX - rect.left,
|
||||
@@ -72,7 +73,7 @@ export function InkGlowCard({
|
||||
} as React.CSSProperties}
|
||||
>
|
||||
{href ? (
|
||||
<a
|
||||
<StaticLink
|
||||
href={href}
|
||||
className="relative block rounded-2xl bg-white overflow-hidden transition-all duration-500"
|
||||
style={{
|
||||
@@ -86,7 +87,7 @@ export function InkGlowCard({
|
||||
onMouseLeave={() => setIsHovered(false)}
|
||||
>
|
||||
{content}
|
||||
</a>
|
||||
</StaticLink>
|
||||
) : (
|
||||
<div
|
||||
className="relative rounded-2xl bg-white overflow-hidden transition-all duration-500"
|
||||
|
||||
Reference in New Issue
Block a user