This method is to deploy a shoutbox using Artitalk (opens in a new tab).
Actual link: https://ncwzdlsd.top/shuoshuo/ (opens in a new tab)
First, go to the official website of Artitalk and follow the process in the "Quick Start (opens in a new tab)" section to store Artitalk's data on LeanCloud.
Please note that the international version of LeanCloud is no longer accessible in mainland China. Therefore, Chinese users should use the domestic version of LeanCloud. However, the overall process remains the same, and you only need to include the
serverURL information in the configuration page.
Once the LeanCloud configuration is complete, you can add Artitalk to your own blog.
hexo new page command to create a new page. For example, if you name it "shuoshuo", enter the following command:
hexo new page shuoshuo
A new folder named "shuoshuo" will be automatically created in the
source folder of your blog's root directory.
index.md file inside the newly created
shuoshuo folder and make the following configurations:
If you previously used the local deployment method and created an
essays.ymlfile in the
/source/_data/directory, please delete or rename that file to something else. Otherwise, Artitalk will not work.
--- title: Shoutbox ---
Next, configure the remaining options according to the official documentation (opens in a new tab).
Pay attention to the
serverURLhere. Normally, LeanCloud's
serverURLrequires domain registration. However, since many blog authors may not have a registered domain, there is an alternative solution: use
After configuring it this way, you will have a shoutbox page that can be dynamically edited. If configured as shown above, the effect will be as follows:
For more settings, you can search on your own or refer to the official documentation.
Please note that after deploying the shoutbox using Artitalk, the access speed of the shoutbox page may be relatively slow. If you require faster access speed, please use the local deployment method.
Author: ncwzdlsd (opens in a new tab)
Modified: Evan Luo