Git Product home page Git Product logo

Comments (25)

fuhaiwei avatar fuhaiwei commented on July 24, 2024 5

Thank for version 4.0, update step:

$ cd path/to/hexo
$ hexo new page tags
$ hexo new page categories
$ vim source/tags/index.md 
### add line: type: "tags"
$ vim source/categories/index.md
### add line: type: "categories"
$ cd themes/next
### backup themes/next/_config.yml
$ git pull

from hexo-theme-next.

BlueWinters avatar BlueWinters commented on July 24, 2024 4

反复尝试了上面三个步骤之后
1.删除 db.json
2.hexo clean
3.hexo g

还是出现了訪問tags頁面是沒問題的,有問題的是使用的tag沒有顯示在頁面裡!!

from hexo-theme-next.

iissnan avatar iissnan commented on July 24, 2024 3

@zhengda 试试重新生成下看看有没有问题:

  1. 删除 db.json
  2. hexo clean
  3. hexo g

from hexo-theme-next.

fuhaiwei avatar fuhaiwei commented on July 24, 2024 2

运行 hexo new page tags 命令后会产生 source/tags/index.md 这个文件,你要修改这个文件,在里面添加一句话type: "tags"。
类似于这样:

title: "tags"
date: 2015-03-24 08:58:02

type: "tags"

然后运行服务器即可访问tags页面了。

在 2015-05-29 06:22:57,"Leon Lin" [email protected] 写道:

$ cd path/to/hexo
$ hexo new page tags
$ hexo new page categories
$ vim source/tags/index.md

add line: type: "tags"

$ vim source/categories/index.md

add line: type: "categories"

$ hexo d -g

做完之後產生的 /tags/index.html 裡面沒有顯示出所用的tag...

node -v
v0.12.4

npm -v
2.10.1

hexo -v
hexo-cli: 0.1.6
os: Windows_NT 6.1.7601 win32 x64
http_parser: 2.3
node: 0.12.4
v8: 3.28.71.19
uv: 1.5.0
zlib: 1.2.8
modules: 14
openssl: 1.0.1m


Reply to this email directly or view it on GitHub.

from hexo-theme-next.

rhinenoir avatar rhinenoir commented on July 24, 2024 1

I've also fix it by adding type as @fuhaiwei said above

from hexo-theme-next.

iissnan avatar iissnan commented on July 24, 2024

Category 还不支持。 tags/index.html 需要手动去生成。

from hexo-theme-next.

WitNesS23 avatar WitNesS23 commented on July 24, 2024

小白求教如何手动生成tags/index.html

from hexo-theme-next.

iissnan avatar iissnan commented on July 24, 2024
hexo new page tags

from hexo-theme-next.

WitNesS23 avatar WitNesS23 commented on July 24, 2024

谢谢分享~

from hexo-theme-next.

iissnan avatar iissnan commented on July 24, 2024

已支持 categories,生成方法与 tags 类似。

from hexo-theme-next.

mingmings avatar mingmings commented on July 24, 2024

@iissnan 点赞

from hexo-theme-next.

iissnan avatar iissnan commented on July 24, 2024

@fuhaiwei 👍

from hexo-theme-next.

soomtong avatar soomtong commented on July 24, 2024

@fuhaiwei 👍

from hexo-theme-next.

anoxia avatar anoxia commented on July 24, 2024

@fuhaiwei 多谢

from hexo-theme-next.

zhengda avatar zhengda commented on July 24, 2024

已有使用 hexo new page "tags" 產生 /tags/index.md ,
並在 .md 裡加上 type: "tags"
寫的文章裡有使用 tag。
hexo d -g 後產生出的文章結尾有正確顯示 tag ,
可是產生的 /tags/index.html 裡沒有顯示所用的 tag 。
訪問tags頁面是沒問題的,有問題的是使用的tag沒有顯示在頁面裡。

是hexo 3.1.1的bug嗎?

from hexo-theme-next.

mingmings avatar mingmings commented on July 24, 2024

@zhengda 如果你的站点在子目录中,那么你的主题 config 里 menu 设定就必须指定到子目录中来

from hexo-theme-next.

zhengda avatar zhengda commented on July 24, 2024

嗯... 删除 db.json 再 hexo g 就 Ok 了. Thanks.

from hexo-theme-next.

xjliao avatar xjliao commented on July 24, 2024

@iissnan 搞定 很好 thx

from hexo-theme-next.

xidui avatar xidui commented on July 24, 2024

已搞定

from hexo-theme-next.

mrwangrj avatar mrwangrj commented on July 24, 2024

搞定!

from hexo-theme-next.

BlueWinters avatar BlueWinters commented on July 24, 2024

而且会出现中文乱码的情况:
\source\tags\index.md文件,修改title为中文标签,结果hexo s后,本地访问发现是乱码。。。

from hexo-theme-next.

 avatar commented on July 24, 2024

categories页面访问正常,但是点击详细的分类显示404。
categories文件夹下存在index.html和详细分类的文件夹,且详细分类的文件夹下也有index.html。
这是什么问题

from hexo-theme-next.

zhengda avatar zhengda commented on July 24, 2024

It depends on the support of the theme you used. You will see the lack of support at categories/tags on many themes. For instance, the 'Minos' theme I used just cannot correctly generate tags/index.html, nonetheless, tags/yourtag/index.html works very well...

from hexo-theme-next.

YauLam avatar YauLam commented on July 24, 2024

为什么我按照上述操作,tags页面依旧不显示有哪些tag呢?谁知道是什么原因,麻烦告知

from hexo-theme-next.

MBTimY avatar MBTimY commented on July 24, 2024

@YauLam 我按照操作已经可以正常的显示了,要删掉 db.json文件然后clean 然后再 hexo d -g ,就可以了 你在 nexo new page tags 这里的时候 我这里生成出来的index.md文件 生出出来以后我没有进去修改

from hexo-theme-next.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.