Skip to content

fix: missing <style> tag breaks zh/ page; correct canonical URLs#8

Merged
shenxianpeng merged 2 commits intomainfrom
copilot/fix-broken-website
Mar 28, 2026
Merged

fix: missing <style> tag breaks zh/ page; correct canonical URLs#8
shenxianpeng merged 2 commits intomainfrom
copilot/fix-broken-website

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 28, 2026

website/zh/index.html was missing its opening <style> tag, causing the entire CSS block to render as raw text in the browser. Additionally, both index.html and zh/index.html had canonical/hreflang URLs pointing to /cast/ instead of the actual deployment path /cast-cli/.

Changes

  • website/zh/index.html — Insert missing <style> tag before the CSS :root block:
    <link rel="alternate" hreflang="zh-CN" href="...">
    <style>       <!-- was absent -->
      :root {
        --bg: #0D0C0B;
        ...
  • website/zh/index.html / website/index.html — Fix canonical and hreflang URLs: /cast//cast-cli/

📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.

Copilot AI changed the title [WIP] Fix broken cast-cli website fix: missing <style> tag breaks zh/ page; correct canonical URLs Mar 28, 2026
Copilot AI requested a review from shenxianpeng March 28, 2026 16:00
@github-actions
Copy link
Copy Markdown
Contributor

🔍 Preview ready

Page URL
EN homepage https://castops.github.io/cast-cli/pr-8/
ZH homepage https://castops.github.io/cast-cli/pr-8/zh/
Docs (EN) https://castops.github.io/cast-cli/pr-8/docs/getting-started.html
Docs (ZH) https://castops.github.io/cast-cli/pr-8/zh/docs/getting-started.html

Built from 2db1267. Updates on every push. Removed when PR is closed.

@shenxianpeng shenxianpeng marked this pull request as ready for review March 28, 2026 16:16
@shenxianpeng shenxianpeng merged commit c86ea61 into main Mar 28, 2026
7 checks passed
@shenxianpeng shenxianpeng deleted the copilot/fix-broken-website branch March 28, 2026 16:16
github-actions bot added a commit that referenced this pull request Mar 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

https://castops.github.io/cast-cli/zh/ website broken

2 participants