violet留言板
详见:信笺样式留言板
- 在
[BlogRoot]运行指令
1
| npm install hexo-butterfly-envelope --save
|
- 在站点配置文件
_config.yml或主题配置文件_config.butterfly.yml添加以下配置项
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
envelope_comment: enable: true custom_pic: cover: https://npm.elemecdn.com/hexo-butterfly-envelope/lib/violet.jpg line: https://npm.elemecdn.com/hexo-butterfly-envelope/lib/line.png beforeimg: https://npm.elemecdn.com/hexo-butterfly-envelope/lib/before.png afterimg: https://npm.elemecdn.com/hexo-butterfly-envelope/lib/after.png message: - 有什么想问的? - 有什么想说的? - 有什么想吐槽的? - 哪怕是有什么想吃的,都可以告诉我哦~ bottom: 自动书记人偶竭诚为您服务! height: path: front_matter: title: 留言板 comments: true
|
- 留言板入口
注意上面的 path 路径默认是 /comments/index.xml,我们可以在菜单栏中但单独创建一个留言板入口
留言板的图标可以从 Fontawesome中获得,注意路径为/comments/
1 2 3 4 5 6 7 8 9 10 11 12 13
| #导航栏 menu: 首页: / || fas fa-home 归档: /archives/ || fas fa-archive 标签: /tags/ || fas fa-tags 分类: /categories/ || fas fa-folder-open 娱乐||fa fa-heartbeat: 音乐: /music/ || fas fa-music 照片: /gallery/ || fas fa-images 电影: /movies/ || fas fa-video 留言: /comments/ || fas fa-envelope-open-text 友链: /link/ || fas fa-link 关于: /about/ || fas fa-heart
|
- 再次清理,启动项目即可