Hexo中插件及命令整理
文章排序(按照文章内置时间date排序)
1 |
|
设置置顶
给需要置顶的文章加入top参数,如下
1 |
|
如果存在多个置顶文章,top后的参数越大,越靠前。
字数统计
只需要安装一个插件 WordCount
1 |
|
单篇文章字数
1 |
|
所有文章的总字数
1 |
|
npm install hexo-generator-feed –save
1 |
|
Extensions
Plugins: http://hexo.io/plugins/
#RSS订阅
plugin:
- hexo-generator-feed
#Feed Atom
feed:
type: atom
path: atom.xml
limit: 20
1 |
|
link:
rss: /atom.xml
1 |
|
npm install hexo-generator-sitemap –save
1 |
|
plugin:
- hexo-generator-feed
- hexo-generator-sitemap
验证配置是否成功:
执行`hexo g`,查看一下public目录下,如果有 sitemap.xml 文件,则表明配置成功。
效果:
访问`/sitemap.xml` 就能看到生成的站点地图了
Hexo中插件及命令整理
https://leehoward.cn/2019/10/14/Hexo中插件及命令整理/