Sign up for DaoVoice
The registered login address is as follows:
http://www.daovoice.io/Official
website for registration, you need an invitation code: b6dbddb6 Copy and paste it ~!
Or enter through the following link:
http://dashboard.daovoice.io/get-started ? invite_code = b6dbddb6
Copy and paste code
The modified hexo file path is as follows: themes / next / layout / _partials / head.swig Add the following code:
{% if theme.daovoice %}
<script>(function(i,s,o,g,r,a,m){i["DaoVoiceObject"]=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;a.charset="utf-8";m.parentNode.insertBefore(a,m)})(window,document,"script",('https:' == document.location.protocol ? 'https:' : 'http:') + "//widget.daovoice.io/widget/b6dbddb6.js","daovoice")
daovoice('init', {
app_id: "你获取的appid"
});
daovoice('update');
</script>
{% endif %}
This code is found here:
According to your own modification, refer to the following figure:
Modify the theme's configuration file
Add in the theme's configuration file:
daovoice: true
daovoice_app_id: 我们注册获取的id
Redeploy
After entering hexo s deployment, DaoVoice official website will prompt
At the same time, the DaoVoice icon appears in the lower right corner of the page
test
Type hello wugenqiang
Enter key to send, the effect is as follows:
At the same time, DaoVoice also received information in the background
If you have to log in to DaoVoice to reply every time, it is a bit troublesome, so it is recommended to bind WeChat in DaoVocie, and then use DaoVoice's applet to reply on the phone.
Ways to bind WeChat: