refactor(about): 重构关于页面路由为静态路径
将关于页面的查询参数路由改为静态路径结构,如/about/company 更新i18n消息中的链接路径 添加新的[section]页面处理逻辑 优化静态生成参数和错误处理
This commit is contained in:
@@ -4,7 +4,6 @@ import LocaleSwitcher from "@/components/LocaleSwitcher";
|
||||
import { siteConfig } from "@/config/site";
|
||||
import { Link as I18nLink } from "@/i18n/routing";
|
||||
import { useTranslations } from "next-intl";
|
||||
import Image from "next/image";
|
||||
|
||||
const Header = () => {
|
||||
const t = useTranslations("Home");
|
||||
@@ -18,7 +17,7 @@ const Header = () => {
|
||||
prefetch={false}
|
||||
className="flex items-center space-x-1 font-bold"
|
||||
>
|
||||
<Image
|
||||
<img
|
||||
alt={siteConfig.name}
|
||||
src="/logo.png"
|
||||
className="w-6 h-6"
|
||||
|
||||
Reference in New Issue
Block a user