Comments (25)
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.
反复尝试了上面三个步骤之后
1.删除 db.json
2.hexo clean
3.hexo g
还是出现了訪問tags頁面是沒問題的,有問題的是使用的tag沒有顯示在頁面裡!!
from hexo-theme-next.
@zhengda 试试重新生成下看看有没有问题:
- 删除 db.json
- hexo clean
- hexo g
from hexo-theme-next.
运行 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.
I've also fix it by adding type as @fuhaiwei said above
from hexo-theme-next.
Category 还不支持。 tags/index.html
需要手动去生成。
from hexo-theme-next.
小白求教如何手动生成tags/index.html
from hexo-theme-next.
hexo new page tags
from hexo-theme-next.
谢谢分享~
from hexo-theme-next.
已支持 categories,生成方法与 tags 类似。
from hexo-theme-next.
@iissnan 点赞
from hexo-theme-next.
from hexo-theme-next.
from hexo-theme-next.
@fuhaiwei 多谢
from hexo-theme-next.
已有使用 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.
@zhengda 如果你的站点在子目录中,那么你的主题 config 里 menu 设定就必须指定到子目录中来
from hexo-theme-next.
嗯... 删除 db.json 再 hexo g 就 Ok 了. Thanks.
from hexo-theme-next.
@iissnan 搞定 很好 thx
from hexo-theme-next.
已搞定
from hexo-theme-next.
搞定!
from hexo-theme-next.
而且会出现中文乱码的情况:
\source\tags\index.md文件,修改title为中文标签,结果hexo s后,本地访问发现是乱码。。。
from hexo-theme-next.
categories页面访问正常,但是点击详细的分类显示404。
categories文件夹下存在index.html和详细分类的文件夹,且详细分类的文件夹下也有index.html。
这是什么问题
from hexo-theme-next.
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.
为什么我按照上述操作,tags页面依旧不显示有哪些tag呢?谁知道是什么原因,麻烦告知
from hexo-theme-next.
@YauLam 我按照操作已经可以正常的显示了,要删掉 db.json文件然后clean 然后再 hexo d -g ,就可以了 你在 nexo new page tags 这里的时候 我这里生成出来的index.md文件 生出出来以后我没有进去修改
from hexo-theme-next.
Related Issues (20)
- 首页文章数量超过主题默认配置导致出现下一页显示错误 HOT 2
- 关于markdown风格的[toc]目录无法生成 HOT 1
- 增加可下拉二级菜单
- 接力接力 HOT 1
- 最新版本行内代码背景颜色怎么更改呀?
- 本地进行预览,展示地全是{% include '_partials/pagination.swig' %} {% endblock %} {% block sidebar %} {{ sidebar_template.render(false) }} {% endblock %}等英文符号
- 如何设置侧边栏和菜单栏的宽度
- 侧边栏中的description和作者名不显示
- hexo使用next主题,location:4000显示不对问题。 HOT 2
- 如何设置banner
- Why Chinese content's title doesn't change colour?
- Neu Theme
- 一个错误
- 感谢iissnan HOT 1
- README.md need to be updated because the community-maintained version is migrated!!
- 中文目录树 点击无法跳转 HOT 5
- 更新了hexo5.4.0,启用next后,页面无法正常显示,出现了内嵌标签的代码 HOT 1
- Menu_icons配置失效 HOT 2
- 修复 leancloud 文章阅读数显示异常
- Bugs in negated `instanceof` expressions HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hexo-theme-next.