页脚菜单
配置网站页脚中的链接
定义网站页脚中的链接,每个项目都是 MenuItemConfig。
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)有条件地显示。

下一步
现在您了解了页脚配置,请探索其他相关主题:
TanStarter 文档