_index.md 首页模板 — 更新指引#
文件位置:
content/_index.md总行数: 416 行 更新规则: 每次添加新游戏或新闻后,按此模板更新首页
1. Frontmatter(第1-6行)#
---
title: '首页'
description: 'NTGame (新途游戏 / New Tutorial Games) — Free bilingual game guides for N+ 热门游戏...'
weight: '1'
bookToc: false
---- 更新
description中的游戏数量
2. 横幅区 Banner(第8-30行)#
<div class="site-banner">
<div class="banner-mosaic">
<img src="/eldenring/images/keyart.webp" alt="" loading="lazy" />
<img src="/blackmythwukong/images/keyart.webp" alt="" loading="lazy" />
<img src="/baldursgate3/images/keyart.webp" alt="" loading="lazy" />
<img src="/isaac/images/keyart.webp" alt="" loading="lazy" />
<img src="/palworld/images/keyart.webp" alt="" loading="lazy" />
<img src="/witcher3/images/keyart.webp" alt="" loading="lazy" />
</div>
<div class="banner-inner">
<h1 class="banner-title">NTGame</h1>
<p class="banner-subtitle">Free Bilingual Game Guides</p>
<p class="banner-subsubtitle">新途游戏 · New Tutorial Games</p>
<p class="banner-desc">Free bilingual guides for N 热门游戏 — 14 categories · 20+ pages per game</p>
<div class="banner-stats">
<span class="banner-stat"><span class="stat-num">N</span> Games</span>
<span class="banner-stat"><span class="stat-num">14</span> Categories</span>
<span class="banner-stat"><span class="stat-num">3,800+</span> Guide Pages</span>
</div>
</div>
</div>- 更新游戏数量
N和总页面数 banner-mosaic中的 6 张图为站点代表游戏,可选更新
3. Featured Guides / 热门攻略推荐(第32-59行)#
## Featured Guides / 热门攻略推荐
<div class="featured-grid">
<a href="/blackmythwukong/" class="featured-card">
<div class="featured-thumb"><img src="/blackmythwukong/images/keyart.webp" alt="..." loading="lazy" /></div>
<div class="featured-title">Black Myth: Wukong / 黑神话悟空</div>
</a>
... (6 个卡片)
</div>- 始终保留 6 个卡片,选当前最热门/最新游戏
4. 导航卡片(第63-67行)#
- 保持不变
5. 最新游戏新闻 (第70-117行)#
## Latest Game News / 最新游戏新闻
<div class="news-section">
<div class="news-item">
<div class="news-thumb"><img src="/xxx/images/keyart.webp" alt="" loading="lazy" /></div>
<div class="news-text"><strong><a href="/news/xxx/">标题</a></strong> — YYYY-MM-DD. 英文描述. / 中文描述</div>
</div>
...(共10条,按日期降序排列)
</div>
[All News →](/news "All Game News")规则:
- 严格保留 10 条
- 按
YYYY-MM-DD日期降序排列(最新的在最前) - 标题用
<strong><a href="...">...</a></strong>包裹 - 缩略图从
/xxx/images/keyart.webp引用(如新闻页无独立图片) - 如有独立图片则用
/news/images/xxx.webp
6. 排行榜 Rankings(第120-131行)#
## Rankings / 排行榜
- **标题** — 描述. [View →](/rankings/xxx) / 中文描述
...
[All Rankings →](/rankings "All Rankings")- 保持 5 个排行榜链接
7. 最新更新 Latest Updates(第136-155行)#
## Latest Updates / 最新更新
| Game / 游戏 | Date | Update / 更新内容 |
|------|:----:|---------|
| [游戏名](path) | YYYY-MM-DD | 英文 / 中文描述 |
...
[All Games →](/guides)规则:
- 保持约 12-14 行记录
- 新内容加到表格顶部
- 超出数量时删除底部的旧记录
- Date 列保持右对齐 (
:----:)
8. 14 个分类游戏区(第159-414行)#
每个分类格式如下:
<div class="genre-section genre-{slug}" id="{slug}">
### {分类名 英文 / 中文}
游戏名 / 中文名
...(每行一款游戏)
</div>分类列表(14 个):
| # | id | 英文 | 中文 |
|---|---|---|---|
| 1 | souls-like | Souls-like | 魂系动作 |
| 2 | action-rpg | Action RPG | 动作角色扮演 |
| 3 | character-action | Character Action | 动作清版 |
| 4 | rpg | RPG | 角色扮演 |
| 5 | strategy | Strategy | 策略游戏 |
| 6 | shooter | Shooter | 射击游戏 |
| 7 | horror | Horror | 恐怖游戏 |
| 8 | fighting | Fighting | 格斗游戏 |
| 9 | open-world-survival | Open World & Survival | 开放世界与生存 |
| 10 | racing-sports | Racing & Sports | 竞速与体育 |
| 11 | roguelike | Roguelike | 肉鸽游戏 |
| 12 | platformer | Platformer & Indie | 平台跳跃与独立游戏 |
| 13 | coop | Co-op Games | 合作游戏 |
| 14 | mobile | Mobile Games | 手机游戏 |
添加新游戏时规则:
- 用
格式
英文名 / 中文名 - 按字母序或相关度放入对应分类
- 上下行缩进对齐
- 如果游戏属于多个分类,只放入最主要的分类
9. 底部闭合(第416行)#
</div>- 保持不变
更新流水线#
- 编辑
content/_index.md按上述规则更新 - 运行
cd ~/my-game-guide-hugo && ~/bin/hugo构建 - 运行
rsync -avz --checksum --delete public/ -e 'ssh -p 22222' root@66.154.100.17:/var/www/ntgame/部署 - 可选:提交 IndexNow
curl -s "https://www.bing.com/indexnow?url=https://ntgame.com/&key=b8293ba5db59480eb347e45253bb3c2f"