XingLuo

我亦是行人

历史上的今天

回顾历史,铭记过去

加载中...
加载每日新闻...

Back

Waline Comment System

The theme’s comment, read statistics, likes, and other functionalities are all provided by Waline ↗.

Deploy

You can refer to its documentation for configuration, and it is recommended to use the Vercel ↗ + Supabase ↗ combination.

Configuration

Then you can configure the Waline comment system in the integrationConfig.server.

src/site.config.ts
export const integrationConfig: IntegrationConfig = {
  // ...
  waline: {
    // Comment system service link (no link to disable)
    server: 'https://astro-theme-pure-waline.arthals.ink/', 
    // Refer https://waline.js.org/en/guide/features/emoji.html
    emoji: ['bmoji', 'weibo'],
    // Refer https://waline.js.org/en/reference/client/props.html
    additionalConfigs: {
      pageview: true,
      comment: true
      // ...
    }
  }
}
ts

Usage

You can call it manually in .astro or .mdx files.

import { Comment } from '@/components/advanced'

;<Comment />
jsx

Render:

Comment seems to stuck. Try to refresh?✨