This commit is contained in:
eric
2026-06-07 01:17:46 -05:00
parent 283d65d1d1
commit cd885f5fcd
110 changed files with 17876 additions and 11 deletions

View File

@@ -566,7 +566,7 @@ function RelatedContent({ items, compact = false }: { items: Array<Record<string
if (type === "ebook") return `/ebooks/${slug}`;
if (type === "video") return `/videos/${slug}`;
if (type === "app") return "/app";
return String(item.targetUrl || "https://digital.hackrobot.cn/zh");
return String(item.targetUrl || "/digital");
};
return (
<Panel title="关联内容">

View File

@@ -0,0 +1,15 @@
"use client";
import { usePathname } from "next/navigation";
import Navbar from "./Navbar";
export default function RouteAwareNavbar() {
const pathname = usePathname();
const isDigitalRoute = /^\/(zh|en)\/digital(?:\/|$)/.test(pathname);
if (isDigitalRoute) {
return null;
}
return <Navbar />;
}

View File

@@ -86,7 +86,7 @@ export default memo(function SiteMenu({
{
titleKey: "other",
items: [
{ labelKey: "digitalNomadGuide", href: process.env.NEXT_PUBLIC_DIGITAL_URL || "https://digital.hackrobot.cn/", icon: "📖" },
{ labelKey: "digitalNomadGuide", href: "/digital", icon: "📖" },
{ labelKey: "remoteJobs", href: "#", icon: "💼" },
{ labelKey: "coworking", href: "#", icon: "🏢" },
],