Repository navigation
feat(home): 首页 H1 改为两行,品牌关键词进入 h1 - #32
Merged
Merged
Conversation
- h1 小号行「驭缰工程 · Harness Engineering」、大号行「人类掌舵,智能体执行」,同属一个 h1;中间的视觉隐藏「:」让纯文本读作一句 - kicker 去掉与品牌行重复的 HARNESS ENGINEERING,改为「学习档案 · 中文」 - 窄屏只在逗号后换行,不拆开「智能体执行」 - /index.md 副本与 llms-full 首页标题同步为两行合并后的完整句
deusyu
force-pushed
the
cursor/homepage-h1-87e4
branch
from
November 23, 2026 03:41
f364cff to
54f8dea
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
对应曝光方案站内第 6 项,采用 H1 候选 2。这个 PR 和 #31 互相独立,基于最新
main,没有动public/og.png和.vitepress/config.ts。改动
只改了首页 hero 相关的两个文件:
.vitepress/theme/home-copy.mjstitleBrand: '驭缰工程 · Harness Engineering'。/index.md副本和 llms-full 的首页标题同步改为一整句:# 驭缰工程 · Harness Engineering:人类掌舵,智能体执行。.vitepress/theme/HomeArchive.vuewhite-space: nowrap,窄屏时只在逗号后换行。原来在 390px 宽时会断成「智能体 / 执行」。页面仍然只有一个 h1。
index.md没有改,也没有裸计数(C14)。截图
桌面(1440×900):
桌面首屏
移动端(390×844):
移动端首屏
另外在 320px 和 360px 宽度下检查过:没有横向滚动。320px 时品牌行会自然折成两行。
验证
bash scripts/check-consistency.sh:全部通过。node .vitepress/sidebar.mjs --verify:通过。npm run docs:build和node scripts/verify-dist.mjs:通过。index.html里<h1>只有 1 个,文本是上面那一整句。To show artifacts inline, enable in settings.