feat: 移除首页顶部欢迎区的 description
This commit is contained in:
@@ -117,7 +117,7 @@ MeNav 配置系统采用“完全替换”策略(不合并),按以下优
|
||||
4. **顶部欢迎信息与社交链接**
|
||||
- `profile`:首页顶部欢迎信息
|
||||
- `social`:侧边栏底部社交链接
|
||||
- `profile.description` 可写较长文本,用于放置个性化介绍或使用说明
|
||||
- `profile.title` / `profile.subtitle`:分别对应首页顶部主标题与副标题
|
||||
|
||||
5. **导航**
|
||||
- `navigation[]`:页面入口列表,`id` 需唯一,并与 `pages/` 中配置文件名对应(例如 `id: home` 对应 `pages/home.yml`)
|
||||
@@ -200,7 +200,6 @@ keywords: "导航,网址,书签,个人主页"
|
||||
profile:
|
||||
title: "个人导航站"
|
||||
subtitle: "我收藏的精选网站"
|
||||
description: "这是一个用于快速访问常用网站的个人导航页面。"
|
||||
|
||||
# 字体配置
|
||||
fonts:
|
||||
|
||||
@@ -34,7 +34,6 @@ fonts:
|
||||
profile:
|
||||
title: Hello,
|
||||
subtitle: Welcome to My Navigation
|
||||
description: MeNav
|
||||
|
||||
# 社交媒体链接:显示在侧边栏底部;可按需增删
|
||||
social:
|
||||
|
||||
@@ -350,7 +350,6 @@ function ensureConfigDefaults(config) {
|
||||
result.profile = result.profile || {};
|
||||
result.profile.title = result.profile.title || '欢迎使用';
|
||||
result.profile.subtitle = result.profile.subtitle || 'MeNav个人导航系统';
|
||||
result.profile.description = result.profile.description || '简单易用的个人导航站点';
|
||||
|
||||
// 处理站点默认值的辅助函数
|
||||
function processSiteDefaults(site) {
|
||||
@@ -687,7 +686,6 @@ function generatePageContent(pageId, data) {
|
||||
<div class="welcome-section">
|
||||
<h2>${escapeHtml(profile.title || '欢迎使用')}</h2>
|
||||
<h3>${escapeHtml(profile.subtitle || '个人导航站')}</h3>
|
||||
<p class="subtitle">${escapeHtml(profile.description || '快速访问您的常用网站')}</p>
|
||||
</div>
|
||||
${generateCategories(data.categories)}`;
|
||||
} else {
|
||||
|
||||
@@ -98,7 +98,6 @@ templates/
|
||||
<div class="welcome-section">
|
||||
<h2>{{profile.title}}</h2>
|
||||
<h3>{{profile.subtitle}}</h3>
|
||||
<p class="subtitle">{{profile.description}}</p>
|
||||
</div>
|
||||
{{#each categories}}
|
||||
{{> category}}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
<div class="welcome-section">
|
||||
<h2 data-editable="profile-title">{{profile.title}}</h2>
|
||||
<h3 data-editable="profile-subtitle">{{profile.subtitle}}</h3>
|
||||
<p class="subtitle" data-editable="profile-description">{{profile.description}}</p>
|
||||
</div>
|
||||
{{#each categories}}
|
||||
{{> category}}
|
||||
|
||||
Reference in New Issue
Block a user