fix: 修复外部资源、图标模式与嵌套交互(#30)

Fixes: https://github.com/rbetree/menav/issues/30

- Font Awesome:bootcdn→Cloudflare cdnjs
- favicon:gstatic `.com` 失败自动回退 `.cn`
- `icons.mode`:修复 `site.yml` 配置未生效(提升到顶层)
- 站点级图标覆盖:支持 `faviconUrl` / `forceIconMode`(优先级:`faviconUrl` > `forceIconMode` > `icons.mode`)
- 折叠交互:恢复二级分组折叠按钮(桌面端悬停显示)
- 新标签页:递归补齐多级 `sites.external` 默认值
This commit is contained in:
rbetree
2026-01-02 14:58:53 +08:00
parent d2ceeb674f
commit 30d50ebcd7
13 changed files with 613 additions and 97 deletions

View File

@@ -4,10 +4,15 @@
data-icon="{{icon}}"
data-level="{{#if level}}{{level}}{{else}}3{{/if}}">
<div class="group-header">
<div class="group-header"{{#ifCond subgroups '||' sites}} data-toggle="group"{{/ifCond}}>
<h{{#if level}}{{add level 1}}{{else}}4{{/if}} data-editable="group-name">
<i class="{{icon}}"></i>
{{name}}
{{#ifCond subgroups '||' sites}}
<span class="toggle-icon">
<i class="fas fa-chevron-down"></i>
</span>
{{/ifCond}}
</h{{#if level}}{{add level 1}}{{else}}4{{/if}}>
</div>