Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github页面部署后图片与icon无法加载,本地可以正常显示 #4203

Open
4 tasks done
Mskins opened this issue Sep 15, 2024 · 1 comment
Open
4 tasks done
Labels
need more info Further information is requested

Comments

@Mskins
Copy link

Mskins commented Sep 15, 2024

Describe the bug

Github页面部署后图片与icon无法加载,本地可以正常显示。
I am encountering an issue where images and icons cannot be loaded after deploying to GitHub Pages. These images and icons display correctly when viewed locally.

Reproduction

no

Expected behavior

I want to know where the problem lies.

System Info

win11,edge

Additional context

PixPin_2024-09-15_23-32-49

Validations

@Mskins Mskins added the bug: pending triage Maybe a bug, waiting for confirmation label Sep 15, 2024
@brc-dd
Copy link
Member

brc-dd commented Sep 15, 2024

Try running vitepress build command and preview command locally. It should show broken images too. Most likely you need to move your images referenced from frontmatter to the public directory. If it works locally with vitepress preview, please share how you're deploying the site.

@brc-dd brc-dd added need more info Further information is requested and removed bug: pending triage Maybe a bug, waiting for confirmation labels Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need more info Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants