theme-next / hexo-theme-next

Elegant and powerful theme for Hexo.
https://theme-next.org
Other
8.17k stars 2.05k forks source link

Categories does not generate 需要帮助 [solved] #402

Closed JslinSir closed 5 years ago

JslinSir commented 6 years ago

按照流程生成分类,但是还是报错

code: image image image

sli1989 commented 6 years ago

what's the meaning of /RN/?

use title: Categories in English. and then change the language your want in _config.yml.

JslinSir commented 6 years ago

@sli1989 it mens image

sli1989 commented 6 years ago

So use title: Categories in English? is this works?

JslinSir commented 6 years ago

image Cannot GET /blog/categories/RN%E9%9B%86%E6%88%90SDK%E7%9B%B8%E5%85%B3/

I really do not know how to do, according to the document this situation @sli1989

JslinSir commented 6 years ago

i user gitee hosting is this reason?

gitee need index.html I copy index.html under public every time dou you have any idea?

sli1989 commented 6 years ago

If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/' in site _config.yml.

JslinSir commented 6 years ago

yes i do this already image @sli1989

sli1989 commented 6 years ago

Maybe need u online demo... U can deploy with bug for debug.

ivan-nginx commented 6 years ago

url without blog maybe?

JslinSir commented 6 years ago

i try but Still the same

@ivan-nginx @sli1989

JslinSir commented 6 years ago

The console: GET https://jslinlink.gitee.io/blog/tags/RN/ 404 (Not Found)

sli1989 commented 6 years ago

Con't deploy with bugs? Need see your blog online.

JslinSir commented 6 years ago

blog address: https://jslinlink.gitee.io/blog/ @sli1989

sli1989 commented 6 years ago

gitee need index.html I copy index.html under public every time dou you have any idea?

Don't need to do this. just add anything your like in index.html as index page. like:

<html>
  <head><title>Welcome</title></head>
  <body>
    <h2>hello world</h2>
  </body>
</html>

The related issue reported the same situation in v5.

删除掉 .deploy_git 再部署试试/ delete the .deploy_git folder and hexo clean && hexo g -d

ChungZH commented 6 years ago

你的网站现在打不开了。。。

JslinSir commented 6 years ago

Give up on fixing the problem @ChungZH try agin

JslinSir commented 6 years ago

i change new version still the same

ChungZH commented 6 years ago

OK

ChungZH commented 6 years ago

你的tags页面也是这个问题。

JslinSir commented 6 years ago

怎么解决呢?@ChungZH 什么原因导致的呢

linhaii commented 6 years ago

我的是6.4.0。你把_config.yml里面menu设置中的/Categories/变成Categories/_config.yml里面提示了:如果在二级目录,要把前面的斜杠去掉,原文如下:

When running the site in a subdirectory (e.g. domain.tld/blog), remove the leading slash from link value (/archives -> archives).

你需要仔细阅读里面的内容。

linhaii commented 6 years ago

Mine is 6.4.0。Please edit _config.yml, change /Categories/ to Categories/ It says that "When running the site in a subdirectory (e.g. domain.tld/blog), remove the leading slash from link value (/archives -> archives)." at _config.yml file. you need to read it carefully.

JslinSir commented 6 years ago

@Wechatoff 我试着你说的那样 还是不行 image

menu:
  home: / || home
  about: about/ || user
  tags: tags/ || tags
  categories: categories/ || th
  archives: archives/ || archive

我的next版本是 "version": "6.4.0",

linhaii commented 6 years ago

home那个你把斜杠删了,留空。

删除各个menu英文名字后面的斜杠。

先执行hexo clean,然后重新hexo g,你再看看行不行

JslinSir commented 6 years ago

@Wechatoff 我试了改下,还是不行 放弃修复了。。。。

ChungZH commented 6 years ago

不用子目录试试? 直接 https://jslinlink.gitee.io 这样试试。

Open343 commented 6 years ago

@JslinSir 請教你一個問題,博客中「我挥舞着键盘和本子,发誓要把世界写个明明白白!」這句話是怎麼設置上去的?非常感謝!

JslinSir commented 6 years ago

@Open343 _config.yml文件中的 image

Open343 commented 6 years ago

@JslinSir 好的!謝謝。

sli1989 commented 6 years ago

Gitee's blog must be placed in the subdirectory? There are other blogs built normally using gitee. Is it a problem in building steps?

jiangtj commented 6 years ago

Do you have dependencies "hexo-generator-category" in your project?

Sun-xyu commented 6 years ago

没有source下新建page页面 可手动执行hexo new page tags

jiangtj commented 6 years ago

复现了问题,通过去掉"hexo-generator-category"依赖 image 您可以试一下添加依赖,查看问题是否修复

//npm
npm install --save hexo-generator-category
//or yarn
yarn add hexo-generator-category
ivan-nginx commented 5 years ago

Please, try to reproduce this behavior with any default Hexo theme (light / landscape). If behavior will same, it's not NexT theme bug; close this issue and create same issue in Hexo repositories: hexo-renderer-marked or hexo root engine will at most best choises.