Hexo首页显示摘要 Zhy Hexo Hexo 发布于:2022年10月10日 次浏览 解决Hexo博客没有auto_excerpt的问题1:使用npm安装hexo-excerptnpm install hexo-excerpt --save 2:在站点配置文件中添加excerpt: depth: 5 excerpt_excludes: [] more_excludes: [] hideWholePostExcerpts: true 更新于:2022年10月10日 Hexo Hexo Hexo新建文章模板 问题hexo新建文章时,头部默认是只有title和date,每次要添加类别都要重新写。 解决方法:根目录下找到scaffolds文件夹下的post.md就可以编辑模板了 Hexo置顶功能 置顶功能1.替换首页生成器,在博客根目录中使用以下命令: # your_blognpm uninstall hexo-generator-index --save # 卸载原来的首页生成器npm...