Skip to main content

Artalk Options

Less than 1 minute

Config

See Artalk Configurationopen in new window for details.

  • The el pageTitle, pageKey and site options are reserved for plugins, they will be inferred from VuePress config.

  • Two function options imgUploader and avatarURLBuilder can only be set on client side.

Plugin Config

You can directly configure serializable options in the plugin options:

import { defineUserConfig } from "vuepress";
import { commentPlugin } from "vuepress-plugin-comment2";

export default defineUserConfig({
  plugins: [
    commentPlugin({
      provider: "Artalk",
      // other options
      // ...
    }),
  ],
});

Client Config

You can use the defineArtalkConfig function to customize Artalk:

import { defineClientConfig } from "vuepress/client";
import { defineArtalkConfig } from "vuepress-plugin-comment2/client";

defineArtalkConfig({
  // Artalk config
});

export default defineClientConfig({
  // ...
});