Lost blog's css and js after deploying to Github. Help! #5212
-
I lost my Hexo blog's CSS and js after deploying to GitHub.
The problem has annoyed me for two weeks. I vaguely know the problem should be caused by my setting on the URL in the _config.yml file. I've nearly tried all answers I could find on the internet. They just didn't work. Could anyone help me? Thanks a lot! |
Beta Was this translation helpful? Give feedback.
Answered by
TechLangLDY
May 19, 2023
Replies: 1 comment 1 reply
-
你能贴下你的源代码吗?比如配置文件什么的。你的网站试图加载 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题刚刚突然解决了,我认为成功的原因应该在站点配置文件里的
url
root
deploy
三个项,我把我现在的配置写出来,供有类似问题的人参考,或许可以帮到你:注意:
root
配置文件本来是没有的,我是搜网上很多对这个问题的帖子都说要设置这个才加的,或许并不用。Error: Spawn failed
无法推送到仓库,所以我改了https,但是我后来观察又觉得可能跟用哪个没关系,可能是我的网的问题,可能是待李断了导致的,注意要看到deploy done: git 才是真正部署成功了。