Add link previews (Open Graph tags) for shared pages
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 80/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- html
- 领域
- frontend
调研方向
从 templates/base.html 开始:添加一个空的 {% block meta %} 到 <head> 内,带有默认的 description、og:title、og:description、og:image 和 twitter:card 标签。然后在 templates/game.html 中覆盖该块,使用 game 对象的 title、description 和 cover image 字段,现有的页面模板已经渲染这些字段。完成意味着游戏页面渲染出的 HTML 带有该游戏专属的标签——通过查看源代码或将链接交给预览检查器来确认。
由索引模型根据 Issue 内容生成。
描述
When someone shares a GameVault link on LinkedIn, WhatsApp or Discord, it should show a title, description and image.
- Add a
{% block meta %}totemplates/base.htmlwith a defaultdescription,og:title,og:description,og:imageandtwitter:card - Override it in
templates/game.htmlwith the game's title, description and cover image - Test it with a link preview checker, or by sharing a link to yourself
- 主要语言
- CSS
- 星标
- 1
- 派生
- 1
- 平均合并
- 39 分钟
- 30 天内合并 PR
- 6
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
NotADIM2/GameVault 的其他 Issue
-
Deployment guide未关闭documentation help wanted
难度 2/5 1-3 小时 新手友好度 82/100
-
frontend help wanted
难度 2/5 1-3 小时 新手友好度 78/100
-
frontend good first issue
难度 2/5 1-3 小时 新手友好度 76/100
-
Add a favicon未关闭frontend good first issue
难度 1/5 1-3 小时 新手友好度 85/100
-
backend help wanted
难度 2/5 1-3 小时 新手友好度 75/100
查看 NotADIM2/GameVault 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
ida-arbeitszeit/workers-control#1578 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 66/100
open-webui/tether#52 ·
维护者通常 1 天内回复
-
Bug: Table layout and date column are cut off on mobile screens on the Tournaments -> History page未关闭bug
难度 2/5 1-3 小时 新手友好度 74/100
hexlet-codebattle/codebattle#2375 ·