shenliyang / hexo-theme-snippet

Snippet 简洁而不简单,也许是一款你寻找已久的hexo主题
https://snippet.shenliyang.com/
MIT License
1.09k stars 208 forks source link

希望添加留言板功能 #123

Closed longyating closed 5 years ago

longyating commented 5 years ago

需求就是新建了guestbook后的index.md,无法拥有评论区。 感觉这个页面还是挺实用的。建议完善。

EscapeLife commented 5 years ago

@longyating Do you need to add new articles that visitors can comment on? like this?

image

Refer to this link: https://github.com/shenliyang/hexo-theme-snippet#1-%E4%B8%BB%E9%A2%98%E9%85%8D%E7%BD%AE

## 主题评论

### gitment
gitment:
  enable: false
  owner:
  repo:
  client_id:
  client_secret:
  labels:
  perPage:
  maxCommentHeight:

### 来必力(默认选项)
livere:
  enable: true
  livere_uid:

......
longyating commented 5 years ago

我研究出留言板功能啦!直接新建一个hexo new "留言板"。然后hexo d.提交后,复制该页面的网址。_config.yml menu中新增一个留言板选项卡,其url就用刚刚复制的连接。然后就真的成功啦!喜极而泣。附上自己的网址,以供学习交流。https://www.longyating.com

EscapeLife commented 5 years ago

一个有点文艺的工科女 😄

wangyongjie2017 commented 5 years ago

我捣鼓了一个留言板的功能,需要的可以参考一下 我的留言板 哦,用的是valine留言插件,大概思路是把需要的html代码直接放到md文件中即可。另外还自定义了404页面,当访问不存在的页面时候,会跳转到自定义的404页面,主题作者大大可以更新主题的的时候考虑加入自定义404页面,谢谢大佬。