- There are numerous plugins for comment systems, and many themes come with built-in comment system plugins. This tutorial takes the Redefine theme as an example to introduce the usage of the Waline comment system.
Official Documentation: https://waline.js.org/guide/get-started/
Waline supports multiple deployment methods, such as Vercel, CloudBase, Netlify, Railway, Zeabur and more. You may select a suitable platform for deployment. The following steps use Zeabur deployment as an example; refer to the official documentation for other deployment solutions.
1. Server-side Configuration ⚓︎
- Click the link: https://github.com/walinejs/zeabur-starter/fork to create the
Zeaburstarter scaffold. Fill in the repository name in theRepository namefield, then clickCreate forkto finish creation.
- Click the link: https://dash.zeabur.com to log into the
Zeaburdashboard. ClickLanguageat the bottom-left corner to switch to Simplified Chinese. HitCreate New Projectto create a new project, select the first regionSilicon Valley, United States, openSettings, and set a name for the new project underProject Name.
- Click
Deploy New Serviceto deploy a new service, selectDatabases, then pickMongoDB. The database service will be deployed automatically.
- Next, create the
Walineservice. ClickAdd Service, then tapConfigure GitHuband complete GitHub authorization as prompted. On theGitHub Repopage, select the project you forked earlier and clickDeployto start deployment.
- Finally, bind an accessible domain
<serverURL>to the service. Select the newly createdWalineservice on the left sidebar, switch to theNetworkingtab on the right and click theGenerate Domainbutton. Enter your desired domain prefix and clickConfirmto finish domain binding.
- Open the newly bound domain in your browser to test comment posting functionality.
2. Client-side Configuration ⚓︎
Fill the domain you set above into the _config.redefine.yml configuration file.
1 | comment: |
The rendering effect is shown below:
3. Comment Management ⚓︎
Visit <serverURL>/ui/register to register an account, or sign up via the comment input box. The first registered user will be assigned administrator privileges. After logging in as an admin, you can access the comment management panel to edit, mark or delete comments.
4. Emoji Configuration ⚓︎
Reference Document: https://waline.js.org/guide/features/emoji.html
Add preset emoji URLs to the _config.redefine.yml config file.
1 | comment: |

All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.
Comments











