feat: 将导航配置合并到站点配置中
- 将导航配置从独立的 navigation.yml 合并到 site.yml 中 - 更新 generator.js 以优先使用 site.yml 中的导航配置 - 添加回退机制,当 site.yml 中无导航配置时仍支持独立的 navigation.yml
This commit is contained in:
@@ -50,3 +50,22 @@ social:
|
||||
- name: Steam
|
||||
url: https://steam.com
|
||||
icon: fab fa-steam
|
||||
|
||||
# 导航配置
|
||||
navigation:
|
||||
- name: 首页 # 菜单名称
|
||||
icon: fas fa-home # Font Awesome 图标类
|
||||
id: home # 页面标识符(唯一,需与 pages/home.yml 对应)
|
||||
active: true # 是否默认激活(全局仅一个 true)
|
||||
- name: 项目
|
||||
icon: fas fa-project-diagram
|
||||
id: projects
|
||||
- name: 文章
|
||||
icon: fas fa-book
|
||||
id: articles
|
||||
- name: 朋友
|
||||
icon: fas fa-users
|
||||
id: friends
|
||||
- name: 书签
|
||||
icon: fas fa-bookmark
|
||||
id: bookmarks
|
||||
|
||||
Reference in New Issue
Block a user