-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Labels
Description
本地预览没问题,但是deploy到github之后,主页,只显示个空白背景。
原因:github page在November 3, 2016更新内容中https://github.com/blog/2277-what-s-new-in-github-pages-with-jekyll-3-3
Jekyll now ignores the vendor and node_modules directories by default.
解决方案一:
手动将 source/vendors 目录修改成 source/lib;同时,修改下主题配置文件_config.yml,
将 _internal: vendors 修改为_internal: lib
解决方案二:
更新作者的最新程序(不建议自己有较大改动的进行此操作)。
.
MissCuriosity
Metadata
Metadata
Assignees
Labels
Projects
Milestone
Relationships
Development
Select code repository
Activity
Neveryu commentedon Nov 3, 2016
@unsky 兄弟你好,你这个问题应该是在部署的时候文件上传存在丢失造成的,建议重试。
详情:Hexo-NexT搭建个人博客(二)
Hexo-NexT搭建个人博客(一)
FerminYang commentedon Nov 3, 2016
@Neveryu 应该不是文件丢失,文件在REPO里,估计是github pages更新了。
MoHenYunJi commentedon Nov 3, 2016
我的也是,next主题空白,折腾一上午,你换成原始的那个landscape就好了
xiaoxionglaoshi commentedon Nov 3, 2016
我擦 我的也是这样 今天上午突然就成这样了 重建了好几遍也没用,换别的主题就没事
caiyue1993 commentedon Nov 3, 2016
+1,今天早上更新文章时也出现同样的情况
funaihui commentedon Nov 3, 2016
http://www.wizardev.com
funaihui commentedon Nov 3, 2016
我的也是这种情况
solverpeng commentedon Nov 3, 2016
我也是这样的情况。
solverpeng commentedon Nov 3, 2016
https://solverpeng.github.io/
solverpeng commentedon Nov 3, 2016
求救啊啊啊啊啊!
meilihu commentedon Nov 3, 2016
+1
fenghan94 commentedon Nov 3, 2016
我的github pages也出现了这种情况
jzy476731162 commentedon Nov 3, 2016
+1
jzy476731162 commentedon Nov 3, 2016
我刚才切了一下别的主题.然后generate并且deploy上去.之后又切回来clean了一下重新g,d就可以了.哎呦沃日,真恶心呢
zfmy commentedon Nov 3, 2016
https://github.com/blog/2277-what-s-new-in-github-pages-with-jekyll-3-3
Jekyll now ignores the vendor and node_modules directories by default.
85 remaining items
PersonaZhou commentedon May 8, 2017
已经没有source/vendors这个目录了,然而提交到github还是不行啊,没有样式折腾好久了
errorlife commentedon May 8, 2017
@ZhouShisong 你可以看看@hhstore 的第一条
Agenric commentedon Jul 7, 2017
xxx.com/tags 显示内容不正常,但是xxx.com/tags/xxx 显示正常,证明索引已经建立,但是tags主页不显示,想问一下大概怎么回事?
HarleyWang93 commentedon Aug 3, 2017
我的情况是:本地预览正常,在线预览只有文本,无样式,查看console:
style.css
fancybox/jquery.fancybox.css
fancybox/jquery.fancybox.pack.js
js/script.js
这些无法获取。
我跟@ZhouShisong应该是一样的情况。
现在应该已经不存在vendors这个问题了。
onlyfly34 commentedon Sep 28, 2017
原來也是遇到一片空白的問題,後來發現是_config.yml沒配置好
URL部分設定成https://xxxx.github.io/Repository-Name
root設定成/Repository-Name/
解決!
Gerogina6 commentedon Nov 29, 2017
我也出现这样的问题//clean g d了很多次 最后d没有显示任何问题 但就是没有效果
但是我没有用jekyll。。可以直接用hexo的?
MARGI3 commentedon Jan 3, 2018
同样的问题,现在的配置已经是 source/lib 了,但是 git push之后lib目录里面的 js css文件 还是不见了,本地都是ok的
liuli1735 commentedon Jan 11, 2018
@MARGI3 我也是同样的问题,还没解决
MARGI3 commentedon Jan 11, 2018
@liuli1735 去新的 issue 地址下留言吧,#2066 (comment) 。 难受
monster-wang-aws commentedon Apr 1, 2018
一个一个看 总还是有解决办法的
解决办法总结贴
@iissnan 作者本人提出的,按理来说最新版本的 hexo 应该没有这个问题
可以手动将 source/vendors 目录修改成 source/lib (或者其他的名称,只是 lib 我测试了可以使用);同时,修改下主题配置文件_config.yml, 将 _internal: vendors 改成你所修改的名字,例如 _internal: lib。
@hhstore 贡献,上次我出错使用这个方式,主要会显示几个 css js 文件找不到
步骤:
.deploy_git 目录, 添加 .nojekyll 空文件
source目录, 添加.nojekyll 空文件
修改 Hexo 上层_config.yml配置文件, 添加
include:
重新部署推送: hexo d -g
为什么说是暂时呢,因为还是有几个图片没找到_(:з」∠)_ 挂的很莫名,下次再看了
https://monster-gump.github.io/
ivan-nginx commentedon Apr 1, 2018
NexT is rebased into organization repo.
If you want new feature, fix, or support, create new in NexT v6.x repo (desirable in English).
There is instructions on English or Chinese how to update from v5.1.x to v 6.x
You also may read this for details.