LogoTanStarter 文档
LogoTanStarter 文档
首页模板介绍代码库快速开始环境配置
网站配置
网站配置导航菜单页脚菜单侧边栏菜单头像按钮社交媒体
部署

功能集成

Cloudflare数据库身份验证邮件邮件订阅存储支付通知分析聊天框联盟营销

功能定制

元数据页面落地页博客组件用户管理密钥管理

代码库

项目结构代码检查编辑器设置更新代码库
X (Twitter)
网站配置

页脚菜单

配置网站页脚中的链接

定义网站页脚中的链接,每个项目都是 MenuItemConfig。

src/config/footer-config.ts
export function getFooterLinks(): MenuItemConfig[] {
  const productItems: MenuItemConfig[] = [];
  productItems.push({
    title: m.features,
    href: Routes.Features,
    external: false,
  });
  if (websiteConfig.payment?.enable) {
    productItems.push({
      title: m.pricing,
      href: Routes.Pricing,
      external: false,
    });
  }
  productItems.push({
    title: m.faq,
    href: Routes.Faqs,
    external: false,
  });

  // 更多部分: resources, company, legal...

  return [
    { title: m.product, items: productItems },
    { title: m.resources, items: resourcesItems },
    { title: m.company, items: companyItems },
    { title: m.legal, items: legalItems },
  ];
}

页脚链接按四列组织:产品、资源、公司和法律。每列都有一个标题和一个链接列表。链接根据功能开关(如 payment.enable、blog.enable)有条件地显示。

Footer

下一步

现在您了解了页脚配置,请探索其他相关主题:

网站配置

配置网站的核心设置

导航栏配置

配置头部导航菜单

社交配置

配置社交媒体链接

侧边栏配置

配置仪表盘的导航菜单

导航菜单

配置网站头部的导航菜单

侧边栏菜单

配置仪表盘页面的导航菜单

目录

下一步