Files
menav/config/_default/site.yml
coolzr cceb83f9a5 feat: 将导航配置合并到站点配置中
- 将导航配置从独立的 navigation.yml 合并到 site.yml 中
- 更新 generator.js 以优先使用 site.yml 中的导航配置
- 添加回退机制,当 site.yml 中无导航配置时仍支持独立的 navigation.yml
2025-10-23 02:01:46 +08:00

72 lines
2.0 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 默认配置(请勿直接修改)。
# 建议复制到 config/user/site.yml 并按需调整;用户配置采用“完全替换”策略,将覆盖默认配置。
# 网站基本信息
title: 我的导航
description: 个人网络导航站
author: Your Name
favicon: favicon.ico
logo_text: 导航站
icons:
# 站点卡片图标模式:
# - favicon自动根据 URL 加载站点 favicon失败时回退到 Font Awesome 图标)
# - manual始终使用手动指定的 Font Awesome 图标(不发起外部请求)
# 隐私提示:启用 favicon 模式会请求第三方服务以获取图标,可能将站点 URL 发送给服务商(详见 README“隐私说明”
mode: favicon # 可选: favicon | manual默认 favicon
# 字体设置source: google | system请确保字体支持相应字重
fonts:
title:
family: Poppins
weight: 600
source: google
subtitle:
family: Quicksand
weight: 500
source: google
body:
family: Noto Sans SC
weight: 400
source: google
# 个人资料:显示在首页顶部的欢迎信息
profile:
title: Hello,
subtitle: Welcome to My Navigation
description: 导航菜单
# 社交媒体链接:显示在侧边栏底部;可按需增删
social:
- name: GitHub
url: https://github.com
icon: fab fa-github
- name: Telegram
url: https://t.me
icon: fab fa-telegram
- name: Twitter
url: https://twitter.com
icon: fab fa-twitter
- 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