Download, FAQ, privacy and terms pages have no meta description
维护者通常 1 天内回复
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 82/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- nextjs, react, typescript
- 领域
- documentation, frontend, web-dev
调研方向
四个受影响的页面通过 apps/web/lib/og/url.ts 中的 buildMarketingMetadata 构建元数据,该函数始终设置 description 键,因此 undefined 值会覆盖根布局的 description。先阅读这个辅助函数,以及一个传入 description 的页面,例如定价页。针对本地构建运行 issue 中的 curl 检查,确认这四个页面输出 description、og:description 和 twitter:description 元标签。当这些标签出现在 /download、/faq、/privacy 和 /terms 上时即完成。
由索引模型根据 Issue 内容生成。
描述
Description
cap.so/download, /faq, /privacy and /terms serve no meta description, and no og:description or twitter:description either, so search results and link previews for them fall back to whatever text the crawler picks.
The root layout sets a site-wide description, but these four pages build their metadata with buildMarketingMetadata (apps/web/lib/og/url.ts) without passing one. The helper always sets the description key, so undefined overrides the layout's description instead of inheriting it. The other 23 pages that use the helper pass a description and are fine.
Reproduction
curl -s https://cap.so/download | grep -cE '<meta (name|property)="(description|og:description|twitter:description)"'
This prints 0 for /download, /faq, /privacy and /terms, and 3 for /pricing.
Expected
Each page has its own description in its page, Open Graph and Twitter metadata.
- 主要语言
- Rust
- 星标
- 24.2k
- 派生
- 2.2k
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 731
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
CapSoftware/Cap 的其他 Issue
-
Android visitors are offered the Linux .deb on cap.so's homepage and download page可能已有人在做 @patrickballard 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
CapSoftware/Cap#3677 · 1 条评论 ·
维护者通常 1 天内回复
-
Shortcut recorder rejects ⌘⇧ with a digit or symbol (e.g. ⌘⇧4)可能已有人在做 @HlaKarki 于 1 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
CapSoftware/Cap#3634 · 1 条评论 ·
维护者通常 1 天内回复
-
Web player intercepts ⌘⇧M and blocks Chrome profile-menu shortcut可能已有人在做 @AatmanAJ 于 19 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 80/100
CapSoftware/Cap#2596 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
CapSoftware/Cap#2384 · 2 条评论 ·
维护者通常 1 天内回复
-
Dashboard pagination causes full page reloads on self-hosted Cap可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 2/5 1-3 小时 新手友好度 88/100
CapSoftware/Cap#2305 · 2 条评论 ·
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
-
could docs good first issue
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
README em inglês未关闭good first issue help wanted priority:p2 type:docs
难度 2/5 1-3 小时 新手友好度 76/100
lucacasanova/homedeck#122 ·
-
needs-triage
难度 1/5 1 小时以内 新手友好度 78/100
bherbruck/solvecraft#11729 · 1 条评论 · 1 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复