iissnan / hexo-theme-next

Elegant theme for Hexo.
http://notes.iissnan.com
MIT License
15.88k stars 3.62k forks source link

'/public/lib/' folder content was missed after `push` to remote #2066

Closed MARGI3 closed 6 years ago

MARGI3 commented 6 years ago

I agree and want to create new issue


Expected behavior

index page render successfully

页面正常渲染

Actual behavior

js css file was droped

js css 文件丢失

Steps to reproduce the behavior

  1. N/A
  2. N/A
  3. N/A

Hexo Information

hexo: 3.4.4
hexo-cli: 1.0.1
os: Darwin 16.6.0 darwin x64
http_parser: 2.5.2
node: 4.4.4
v8: 4.5.103.35
uv: 1.8.0
zlib: 1.2.8
ares: 1.10.1-DEV
icu: 56.1
modules: 46
openssl: 1.0.2h

NexT Information

NexT Version:

[] Latest Master branch.
[x] Latest Release version.
[] Old version -
git clone --branch v5.1.2 https://github.com/iissnan/hexo-theme-next themes/next

NexT Scheme:

[] All schemes
[x] Muse
[] Mist
[] Pisces
[] Gemini

Other Information

local public folder content is correct 本地的 public 文件夹的内容是正确的

screen shot 2018-01-03 at 2 58 49 pm

when use git push to origin master branch, the lib folder miss a few js css files 将本地修改 push 到github时,lib 文件夹的内容 部分文件丢失了

screen shot 2018-01-03 at 2 59 01 pm

MARGI3 commented 6 years ago

use 'locahost:4000' to preview the result was correct , so the local files was correct.

but i was confused that a few files was dropped when i push the commit to the remote

MARGI3 commented 6 years ago

replace theme eg: hueman, it is correct.

after use next release 5.1.3 version (zip resource) still the same problem, 'lib' folder content was dropped

ivan-nginx commented 6 years ago

U must check .gitignore file. Also, please, do not mix v6.x and v5.x repos. There is difference because all possible external libs (in lib directory) was moved out to external repos. See here for details.

ivan-nginx commented 6 years ago

NexT is rebased into organization repo. If you want new feature, please, close this issue and 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.0.x

You also may read this for details.

MARGI3 commented 6 years ago

delete github page content , and then "hexo init", fetch next theme 6.0.1 , "hexo g", "hexo d"

still not work.

ivan-nginx commented 6 years ago

Solved solution here.