安装
在站点根目录下执行
1  | cnpm install hexo-hide-posts --save  | 
配置
在站点目录下的_config.yml中如下配置:
1  | hexo-hide-posts  | 
使用
在文章的属性中定义 hidden: true 即可隐藏文章。
1  | ---  | 
虽然首页上被隐藏了,但你仍然可以通过 https://hexo.test/lorem-ipsum/ 链接访问它。
你可以在命令行运行 hexo hidden:list 来获取当前所有的已隐藏文章列表。
参考blog:https://www.cnblogs.com/yangstar/articles/16690342.html