valaxy-addon-waline

NPM version

English | 简体中文

Integrate the Waline comment system with Valaxy sites and themes.

For comment administration, you can also use Kotodama, a management interface built for Waline servers.

Installation

bash
pnpm add valaxy-addon-waline

Site configuration

Enable comments and load the addon in valaxy.config.ts:

ts
import { defineValaxyConfig } from 'valaxy'
import { addonWaline } from 'valaxy-addon-waline'

export default defineValaxyConfig({
  siteConfig: {
    comment: {
      enable: true,
    },
  },
  addons: [
    addonWaline({
      serverURL: 'https://your-waline-url',
    }),
  ],
})

Theme integration

When the addon is enabled, it registers the <WalineClient /> component automatically:

vue
<script lang="ts" setup>
import { useAddonWaline } from 'valaxy-addon-waline'

const addon = useAddonWaline()
</script>

<template>
  <WalineClient w="full" :options="addon.options" />
</template>

FAQ

C() is not defined

@waline/[email protected] has a known issue. Pin it to 3.4.1.

Contributors