Comments (4)
好想法。可以提供 depth
这样的配置,比如
depth: 1
表示只生成一级目录。
实现很简单,对slug.split
的结果处理一下。
稍等我加上。同时也欢迎PR
from hexo-auto-category.
好的~~我先关闭issue了
from hexo-auto-category.
你可以运行一下
npm update
然后更改一下配置
# Generate categories from directory-tree
# Dependencies: https://github.com/xu-song/hexo-auto-category
# depth: the depth of directory-tree you want to generate, should > 0
auto_category:
enable: true
depth: 1
from hexo-auto-category.
好的,谢谢~~
from hexo-auto-category.
Related Issues (20)
- npm是否还没更新? HOT 1
- 警告:这个插件会直接修改源文件 HOT 3
- How do I create files in subdirectories? HOT 4
- 报错TypeError: tmpPost.categories.join is not a function HOT 6
- _Post.md 可以指定生成分类目录需要几层吗? HOT 1
- 如果能在hexo new 的时候源文件也能归档就好了
- 在应用该插件的工程中遇到了tmppPost.categories不是个函数这个问题。 HOT 1
- 文章标题解析不成功 HOT 2
- join is not a function HOT 11
- 这个问题请看一下,装了这个hexo-auto-category插件,clean了之后 hexo g的时候就会报错,卸载这个插件之后就没事 HOT 3
- 这真是一个很好👍插件,有问题请教下,不甚感激! HOT 5
- 您好,npm是否可以重新发布一下 HOT 3
- 存在以下问题:INFO Generated: categories [null] for post HOT 13
- 希望能添加一个自动根据文件标题添加title的功能? HOT 3
- 重命名文件夹文章内容丢失 HOT 3
- 在已经有文章的文件夹改名字会清除原来的文章 HOT 1
- 编译时 categories 分类内容会被清空 HOT 1
- 分类时有Bug HOT 3
- 建议加个minDepth参数 HOT 8
- 上面一个问题类似,hexo s 后重复打印 HOT 1
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-auto-category.