最近评论

了解如何配置 Solitude 主题的最近评论页面。

修改主题配置文件

你需要修改以下配置,根据你的需求自定义

_config.solitude.yml
# 大约在926行
# --------------------------- start ---------------------------
# Recent comments Page
# 最近评论页面
recent_comments:
  enable: true
  limit: 50 # ⚠️waline 仅支持最大50条评论 / ⚠️waline only supports a maximum of 50 comments
  cache: 0.2 # 1 = 1天 / 1 = 1 day
  page: /recentcomments/ # 最近评论页面 / recent comments page
# --------------------------- end ---------------------------

配置页面

在 Hexo 博客根目录下打开终端,输入以下命令创建新页面

hexo new page recentcomment

创建数据文件

它将在博客目录的 source 文件夹下生成一个 recentcomment 文件夹,其中包含 index.md 文件。 接下来在里面加入页面 type 值。

参考(可按需修改):

index.md
---
title: 最近评论
date: 2025-07-14 19:58:27
type: recentcomment
cover: ""
desc: 最近评论
leftend: ""
rightend: ""
---