之前每个页面各自写链接,加一个新工具要改 N 个地方。
把导航、工具列表统一收进 content.json,由 site-ui.js 的 renderSiteNav / renderToolsHub 渲染。
「加功能尽量只改数据」这条原则,越早确立越省事。后续加新工具基本零侵入。
💬 评论(0)