Download, FAQ, privacy and terms pages have no meta description

未关闭 适合新手
#3,675 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@patrickballard 已经在做这个了。

开始于 2026年11月3日。

  • #3676 来自 @patrickballard —— 未关闭

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
82/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
nextjs, react, typescript

调研方向

四个受影响的页面通过 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 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

CapSoftware/Cap 的其他 Issue

查看 CapSoftware/Cap 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。