feat: 友链入口迁至站点区并支持左右页脚独立开关

修复左侧栏/页脚开关无法关闭的问题,改为专用设置接口可靠写入。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-28 03:04:22 +08:00
parent 9eefe24a33
commit cce9fb9ed8
10 changed files with 364 additions and 21 deletions

View File

@@ -34,18 +34,20 @@ export default function SiteFooter() {
</div>
<nav className="site-footer__nav" aria-label="站点链接">
<span className="site-footer__friend">
<Link to="/links"></Link>
</span>
{footerPages.map(p => (
{limits.footer_show_friend_links !== false && (
<span className="site-footer__friend">
<Link to="/links"></Link>
</span>
)}
{footerPages.map((p, i) => (
<span key={p.slug} className="site-footer__friend">
<FooterSep />
{(limits.footer_show_friend_links !== false || i > 0) && <FooterSep />}
<Link to={pagePath(p.slug, limits)}>{p.title}</Link>
</span>
))}
{icp && (
<>
<FooterSep />
{(limits.footer_show_friend_links !== false || footerPages.length > 0) && <FooterSep />}
<a
href={icpURL}
target="_blank"