【Hexo】博客主题配置(持续更新)
Hexo Butterfly 主题文章置顶
卸载 hexo-generator-index,然后安装 hexo-generator-index-pin-top
npm uninstall hexo-generator-index --save |
使用方法:
在需要置顶的文章的 Front-matter 中加上 top: true / 数字即可,
数字越大,文章越靠前。
例如
cover: |
Hexo Butterfly主题首页增加字数总计&阅读时间
开启字数统计功能,需要安装hexo-wordcount
插件
在 hexo 工作目录下运行npm install hexo-wordcount --save
or yarn add hexo-wordcount
# Need to install the hexo-wordcount plugin |
参数 | 解释 |
---|---|
post_wordcount | 在文章页面显示字数 |
min2read | 在文章页面显示阅读时间 |
total_wordcount | 在侧边栏显示网站总字数 |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 Hozenghan的博客!