Shared links to the game show no preview: no Open Graph, Twitter or canonical tags
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 62/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- html, javascript, markdown
Hướng nghiên cứu
Thay đổi nằm trong <head> của index.html quanh các dòng 6-17, nơi có các thẻ title, description và icon hiện tại. Thêm liên kết canonical cùng các thẻ meta Open Graph và Twitter từ đề xuất sửa lỗi, sau đó chạy npm test, vì tests/unit/offline.test.js yêu cầu index.html và sw.js luôn đồng bộ. Ảnh thẻ mạng xã hội assets/social-card.png (1200x630) vẫn cần được tạo trước khi kiểm tra og:image đạt yêu cầu.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
The game page has a title and description but no Open Graph, Twitter card or canonical tags, so a link to the game shared in chat or on social media shows no image and, in some apps, no preview at all.
Where
index.html:6-17(<head>)
Details
The live page's <head> contains only charset, viewport, <title>, the three stylesheets, description, theme-color, the two icons and the manifest. There is no og:title, og:description, og:image, og:url, og:type, twitter:card or <link rel="canonical">.
Impact
Anyone sharing https://tmhsdigital.github.io/Static_Chess/ gets a bare link or a text-only card. The page is also reachable as /index.html, and without a canonical URL both addresses can be indexed.
Suggested fix
Add to <head>:
<link rel="canonical" href="https://tmhsdigital.github.io/Static_Chess/" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Static Chess" />
<meta property="og:description" content="Chess in the browser for two players or against the computer. Works offline." />
<meta property="og:url" content="https://tmhsdigital.github.io/Static_Chess/" />
<meta property="og:image" content="https://tmhsdigital.github.io/Static_Chess/assets/social-card.png" />
<meta name="twitter:card" content="summary_large_image" />
The image needs to be created: a 1200x630 PNG of the board in play, saved as assets/social-card.png. Open Graph images must use absolute URLs.
Acceptance criteria
- The tags above are present on the live page
- The
og:imageURL returns 200 and is 1200x630 -
npm teststill passes (tests/unit/offline.test.jscomparesindex.htmlwithsw.js)
Getting started
- Relevant files:
index.html,assets/ - How to run tests:
npm test,npm run format
Filed by repo-audit/pages-audit at 0144de7. Severity: low. Effort: S. audit-key: enhancement|index.html|og-meta
- Ngôn ngữ chính
- JavaScript
- Star
- 4
- Fork
- 2
- Merge trung bình
- 4 giờ 8 phút
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của TMHSDigital/Static_Chess
-
documentation good first issue severity: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
TMHSDigital/Static_Chess#79 ·
-
enhancement good first issue severity: low
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
TMHSDigital/Static_Chess#77 ·
-
enhancement good first issue severity: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
TMHSDigital/Static_Chess#75 ·
-
enhancement good first issue severity: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
TMHSDigital/Static_Chess#72 ·
-
documentation good first issue severity: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
TMHSDigital/Static_Chess#49 ·
Tất cả issue của TMHSDigital/Static_Chess
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
discovery:other factory-active task-identify-harness-labels-done task-identify-issue-type-done
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
vercel/ai#25068 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage typo
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
llm-d-incubation/llm-d-scaling-manager#122 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
create-strapi-app doesn't await writing license.txt, so a failed write skips its error handlingĐang mởflag: invalid template issue: bug severity: low source: cli status: pending reproduction version: 5
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
strapi/strapi#28637 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày