Avatar 灵的梦境

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.

Remove#

If you have some reasons to remove the comment system, or just learn how to change to other comment systems, this section might help you. But if you want to know how to configure it, you can skip this section.

Remove it by the following steps:

  1. set enable to false in src/site.config.ts.

    src/site.config.ts
    export const integ: IntegrationUserConfig = {
      // ...
      waline: {
        enable: false
      }
    }
    ts
  2. Remove dependency @waline/client:

    bun remove @waline/client
    shell
  3. Remove folder src/components/waline.

  4. Remove relative code in these layouts:

    • src/layouts/CommonPage.astro
    • src/layouts/BlogPost.astro
  5. Remove relative config like comment or view configuring for the earlier edited layouts in these files:

    • src/pages/about/index.astro
    • src/pages/links/index.astro
    • src/pages/projects/index.astro
    • Other blog post frontmatter config if exists

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.

Usage#

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

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

// prettier-ignore
<Comment />
jsx

Render:

Knowledge map

知识图谱

当前文档、同目录指南与引用关系。

准备中 全局图谱

正在构建知识图谱...

拖动节点 · 滚动缩放 · 点击打开

帮助与支持

这篇文档有帮助吗?

请给我们反馈以改进文档质量
(点击按钮后会打开邮箱)

帮助改进文档

所有文档均开源,发现问题或不清楚的地方?提交 PR 来帮助改进。

编辑此页面 了解如何贡献 →

需要更多帮助?

加入社区或直接联系获取支持

探索更多

发现知识库中的更多指南与资源

文件管理器 /
位置 /
内容
Knowledge explorer

知识图谱

全部知识 准备图谱...
文章 文档 标签 分类

正在加载知识网络...

拖动节点 · 滚动缩放 · 单击查看详情 · 双击打开页面
标签云 / Tag Cloud