Skip to content

本地预览没问题,deploy后主页显示大面积空白,#解决方案 #1214

@unsky

Description

@unsky

本地预览没问题,但是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
解决方案二:
更新作者的最新程序(不建议自己有较大改动的进行此操作)。

.

Activity

Neveryu

Neveryu commented on Nov 3, 2016

@Neveryu

@unsky 兄弟你好,你这个问题应该是在部署的时候文件上传存在丢失造成的,建议重试。
详情:Hexo-NexT搭建个人博客(二)
Hexo-NexT搭建个人博客(一)

FerminYang

FerminYang commented on Nov 3, 2016

@FerminYang

@Neveryu 应该不是文件丢失,文件在REPO里,估计是github pages更新了。

MoHenYunJi

MoHenYunJi commented on Nov 3, 2016

@MoHenYunJi

我的也是,next主题空白,折腾一上午,你换成原始的那个landscape就好了

xiaoxionglaoshi

xiaoxionglaoshi commented on Nov 3, 2016

@xiaoxionglaoshi

我擦 我的也是这样 今天上午突然就成这样了 重建了好几遍也没用,换别的主题就没事

caiyue1993

caiyue1993 commented on Nov 3, 2016

@caiyue1993

+1,今天早上更新文章时也出现同样的情况

funaihui

funaihui commented on Nov 3, 2016

@funaihui
funaihui

funaihui commented on Nov 3, 2016

@funaihui

我的也是这种情况

solverpeng

solverpeng commented on Nov 3, 2016

@solverpeng

我也是这样的情况。

solverpeng

solverpeng commented on Nov 3, 2016

@solverpeng
solverpeng

solverpeng commented on Nov 3, 2016

@solverpeng

求救啊啊啊啊啊!

meilihu

meilihu commented on Nov 3, 2016

@meilihu

+1

fenghan94

fenghan94 commented on Nov 3, 2016

@fenghan94

我的github pages也出现了这种情况

jzy476731162

jzy476731162 commented on Nov 3, 2016

@jzy476731162

+1

jzy476731162

jzy476731162 commented on Nov 3, 2016

@jzy476731162

我刚才切了一下别的主题.然后generate并且deploy上去.之后又切回来clean了一下重新g,d就可以了.哎呦沃日,真恶心呢

zfmy

zfmy commented on Nov 3, 2016

@zfmy

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

PersonaZhou commented on May 8, 2017

@PersonaZhou

已经没有source/vendors这个目录了,然而提交到github还是不行啊,没有样式折腾好久了

errorlife

errorlife commented on May 8, 2017

@errorlife

@ZhouShisong 你可以看看@hhstore 的第一条

Agenric

Agenric commented on Jul 7, 2017

@Agenric

2017-07-08 2 23 56

image

xxx.com/tags 显示内容不正常,但是xxx.com/tags/xxx 显示正常,证明索引已经建立,但是tags主页不显示,想问一下大概怎么回事?

HarleyWang93

HarleyWang93 commented on Aug 3, 2017

@HarleyWang93

我的情况是:本地预览正常,在线预览只有文本,无样式,查看console:
style.css
fancybox/jquery.fancybox.css
fancybox/jquery.fancybox.pack.js
js/script.js
这些无法获取。
我跟@ZhouShisong应该是一样的情况。
现在应该已经不存在vendors这个问题了。

onlyfly34

onlyfly34 commented on Sep 28, 2017

@onlyfly34

原來也是遇到一片空白的問題,後來發現是_config.yml沒配置好
URL部分設定成https://xxxx.github.io/Repository-Name
root設定成/Repository-Name/
解決!

Gerogina6

Gerogina6 commented on Nov 29, 2017

@Gerogina6

我也出现这样的问题//clean g d了很多次 最后d没有显示任何问题 但就是没有效果
但是我没有用jekyll。。可以直接用hexo的?

MARGI3

MARGI3 commented on Jan 3, 2018

@MARGI3

同样的问题,现在的配置已经是 source/lib 了,但是 git push之后lib目录里面的 js css文件 还是不见了,本地都是ok的

liuli1735

liuli1735 commented on Jan 11, 2018

@liuli1735

@MARGI3 我也是同样的问题,还没解决

MARGI3

MARGI3 commented on Jan 11, 2018

@MARGI3

@liuli1735 去新的 issue 地址下留言吧,#2066 (comment) 。 难受

monster-wang-aws

monster-wang-aws commented on Apr 1, 2018

@monster-wang-aws

一个一个看 总还是有解决办法的

解决办法总结贴

  1. @iissnan 作者本人提出的,按理来说最新版本的 hexo 应该没有这个问题
    可以手动将 source/vendors 目录修改成 source/lib (或者其他的名称,只是 lib 我测试了可以使用);同时,修改下主题配置文件_config.yml, 将 _internal: vendors 改成你所修改的名字,例如 _internal: lib。

  2. @hhstore 贡献,上次我出错使用这个方式,主要会显示几个 css js 文件找不到
    步骤:
    .deploy_git 目录, 添加 .nojekyll 空文件
    source目录, 添加.nojekyll 空文件
    修改 Hexo 上层_config.yml配置文件, 添加
    include:

  • .nojekyll

重新部署推送: hexo d -g

  1. 这次除了问题之后尝试了1, 然后更新了 hexo 和 next 的版本,最后 hexo clean 暂时解决了

为什么说是暂时呢,因为还是有几个图片没找到_(:з」∠)_ 挂的很莫名,下次再看了

https://monster-gump.github.io/

ivan-nginx

ivan-nginx commented on Apr 1, 2018

@ivan-nginx
Collaborator

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.

Repository owner locked and limited conversation to collaborators on Apr 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @iissnan@FerminYang@itabas016@carlosfu@liuli1735

        Issue actions

          本地预览没问题,deploy后主页显示大面积空白,#解决方案 · Issue #1214 · iissnan/hexo-theme-next