Astro Theme Pure

Back

Comment System

Comment system for pages at the bottom

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 integ: IntegrationUserConfig = {
  // ...
  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 'astro-pure/advanced'

;<Comment />
jsx

Render:

Comment seems to stuck. Try to refresh?✨