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

本地预览正常,发布到github上一片空白 #1410

Closed
edonyzpc opened this issue Feb 3, 2017 · 9 comments
Closed

本地预览正常,发布到github上一片空白 #1410

edonyzpc opened this issue Feb 3, 2017 · 9 comments
Labels

Comments

@edonyzpc
Copy link

edonyzpc commented Feb 3, 2017

Expected behavior (预期行为)

正常发布到github上

Actual behavior (实际行为)

github上显示一片空白,但是本地预览的时候正常

Steps to reproduce the behavior (重现步骤)

怀疑是我自己配制哪里有问题

NexT Informations

Add the ✔ sign before an item which is affected by this behavior.

NexT Version:

  • Master
  • Latest Release ✔
  • Old version -

NexT Scheme:

  • All schemes
  • Muse
  • Mist
  • Pisces ✔

Other Informations (Like Browser, System, Screenshots)

Chrome和Safari都有这个问题,macOS 10.12.3
地址:https://edonym.github.io/

  • 发布到github:

screen shot 2017-02-03 at 23 02 28

  • 本地预览:

screen shot 2017-02-03 at 23 04 18

@amoyiki
Copy link

amoyiki commented Feb 4, 2017

@Edonym 这应该是 GitHub Pages过滤了 source/vendors的问题。#1214
然后作者给出的方案是

不清楚为什么 GitHub Pages 过滤掉了 source/vendors 目录的访问。我提交了一个更新到 master 分支上,> 修正这个问题,可以更新下。
也可以手动将 source/vendors 目录修改成 source/lib (或者其他的名称,只是 lib 我测试了可以使用);> 同时,修改下主题配置文件_config.yml, 将 _internal: vendors 改成你所修改的名字,例如 _internal: lib。

@Neveryu
Copy link

Neveryu commented Feb 4, 2017

github上显示一片空白,但是本地预览的时候正常

Steps to reproduce the behavior (重现步骤)

怀疑是我自己配制哪里有问题

在根目录添加.nojekyll文件.

@edonyzpc
Copy link
Author

edonyzpc commented Feb 4, 2017

@amoyiki @Neveryu 已经是最新的master分支的代码了,也添加了.nojekyll文件,但是还是没有解决。
目录结构如下所示,这个根目录是指./,还是指./themes/next,我看#1214 里面有提到需要修改配置里面的include: .nojekyll,这个修改是hexo的配置文件还是next主题的配置文件。
.
├── _config.yml
├── db.json
├── node_modules
├── package.json
├── public
├── source
└── themes

@Neveryu
Copy link

Neveryu commented Feb 4, 2017

最新版的应该解决这个问题了吧,把那个.nojekyll去掉吧

@amoyiki
Copy link

amoyiki commented Feb 5, 2017

@Edonym 其实你可以F12打开chrome的调试,看看是具体哪些资源没有加载成功

@jetyu
Copy link

jetyu commented Mar 17, 2017

当时我写了一篇guide,你可以参考一下。https://jetyu.me/%E6%8A%80%E6%9C%AF/20161104.html

@ivan-nginx
Copy link
Collaborator

@Edonym don't understand u, write in English if not solved. If solved, close it please. Thank's!

@bo-kwok
Copy link

bo-kwok commented Jan 2, 2019

解决了吗

@ivan-nginx
Copy link
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.

@ivan-nginx ivan-nginx added the v6.x label Jan 2, 2019
Repository owner locked and limited conversation to collaborators Jan 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants