-
-
Notifications
You must be signed in to change notification settings - Fork 199
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
[BUG] featured images path was not rendered properly on windows browsers #117
Comments
update: tried manually changed lazysizes js to 5.3.1, issue still observed :-) |
Try using this way to import featured image for now.
I will look into it. |
Thank you @HEIGE-PCloud ! - data-src="featured-image.webp"
- data-srcset="/en/nebula-chia/featured-image.webp, featured-image.webp 1.5x, /en/nebula-chia/featured-image.webp 2x"
+ data-src="/en/nebula-chia/featured-image.webp"
+ data-srcset="/en/nebula-chia/featured-image.webp, /en/nebula-chia/featured-image.webp 1.5x, /en/nebula-chia/featured-image.webp 2x" |
The issue is fixed. Now all featured images on the documentation site are set by the newly fixed |
Thanks a ton, @HEIGE-PCloud !!! You are turely amazing. |
Describe the bug 描述你遇到的错误
It's found on windows (firefox, edge) that the featured images on the home page suffered from 404.
It worked well on macOS for all browsers, thus this issue seemed to exist for a long time.
Am I doing it wrong? or something wrong in lazy load part or?
Expected behavior 期待的行为
Browser should display this picture from
alt
rather thandata-src
, while it seemed to go fordata-src
only and 404 encouterred :(I am not expert in the frontend, not sure if the wrong behavior I found is the root cause :-p
Screenshots 屏幕截图
Build Environment 构建环境
Preview Environment 预览环境
Additional Information 补充信息
Can be checked from siwei.io in a windows machine.
post head in
index.md
The text was updated successfully, but these errors were encountered: