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

[BUG] 更新主题后 CSS出现问题,且无法使用浏览器开发者模式 #408

Closed
Ayouuuu opened this issue Jan 12, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@Ayouuuu
Copy link

Ayouuuu commented Jan 12, 2024

Describe the bug 描述你遇到的错误

如题, 在打开浏览器开发者模式后按 Ctrl+Shift+F3 网页崩溃
更新主题后: https://65a0fc741b36af00084ec7a7--ayou10031.netlify.app/
没更新主题前: https://659f4c4df62ce60008737e63--ayou10031.netlify.app/

Expected behavior 期待的行为

网页崩溃

Screenshots 屏幕截图

image
image

Build Environment 构建环境

Hugo version: 0.121.2

Preview Environment 预览环境

Win10、Linux

Additional Information 补充信息

No response

@Ayouuuu Ayouuuu added the bug Something isn't working label Jan 12, 2024
@Lruihao
Copy link
Member

Lruihao commented Jan 12, 2024

我也不知道具体原因,但是 0.2.18 ~ 0.3.1 之间,首页样式并没有做过多的更改。
打开你更新后 url 打开控制台后确实立马出现 “错误代码:5”,我看到你的 service worker 缓存的资源都是 404,这是一个已知的的 BUG (#298), 建议 fingerprint 和 PWA 功能关闭其一再看看。

@Ayouuuu
Copy link
Author

Ayouuuu commented Jan 12, 2024

我也不知道具体原因,但是 0.2.18 ~ 0.3.1 之间,首页样式并没有做过多的更改。 打开你更新后 url 打开控制台后确实立马出现 “错误代码:5”,我看到你的 service worker 缓存的资源都是 404,这是一个已知的的 BUG (#298), 建议 fingerprint 和 PWA 功能关闭其一再看看。

更新了一个版本把文档的内容删除之后又行了,实在不理解这段话有什么奇怪的问题...
Preview: https://65a115eee855d40008446cbf--ayou10031.netlify.app/
Commit: https://github.com/Ayouuuu/Ayouuuu.hugo/commit/32939d6350951a638c84acbe4aec274e1f5fb9e4

@Lruihao
Copy link
Member

Lruihao commented Jan 12, 2024

更新了一个版本把文档的内容删除之后又行了,实在不理解这段话有什么奇怪的问题...

Preview: https://65a115eee855d40008446cbf--ayou10031.netlify.app/

Commit: https://github.com/Ayouuuu/Ayouuuu.hugo/commit/32939d6350951a638c84acbe4aec274e1f5fb9e4

奇怪,看起来好像没啥问题... 会不会和 netlify 有关呢😂

@Ayouuuu
Copy link
Author

Ayouuuu commented Jan 12, 2024

更新了一个版本把文档的内容删除之后又行了,实在不理解这段话有什么奇怪的问题...
Preview: https://65a115eee855d40008446cbf--ayou10031.netlify.app/
Commit: Ayouuuu/Ayouuuu.hugo@32939d6
奇怪,看起来好像没啥问题... 会不会和 netlify 有关呢😂

好像和首页简介的$ 符号有关.... 我在本地 hugo 也这样

---
title: "域名续费?NameSlio 不再是我的最佳选择了!"
date: 2024-01-12T03:05:15Z
---
$13.95域名入到$9.77 

@Lruihao
Copy link
Member

Lruihao commented Jan 12, 2024

刀符是数学表达式的关键词,你给它转义试试

@Ayouuuu
Copy link
Author

Ayouuuu commented Jan 12, 2024

不太行,这个问题仅在首页的简介上生效,复现方法就是 $几个中文字$ , 然后就会崩掉
我刚好在简介里面带上了两个$, 但是表达式有问题,我把简介改了改解决问题了。

@Ayouuuu Ayouuuu closed this as completed Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants