diff --git a/blog.config.js b/blog.config.js index 01b32c22..f9bf64bc 100644 --- a/blog.config.js +++ b/blog.config.js @@ -108,6 +108,7 @@ const BLOG = { COMMENT_VALINE_PLACEHOLDER: process.env.NEXT_PUBLIC_VALINE_PLACEHOLDER || '抢个沙发吧~', // 可以搭配后台管理评论 https://github.com/DesertsP/Valine-Admin 便于查看评论,以及邮件通知,垃圾评论过滤等功能 COMMENT_WALINE_SERVER_URL: process.env.NEXT_PUBLIC_WALINE_SERVER_URL || '', // Waline 评论 @see https://waline.js.org/guide/get-started.html + COMMENT_WALINE_RECENT: process.env.NEXT_PUBLIC_WALINE_RECENT || false, // 最新评论 // 站点统计 ANALYTICS_BUSUANZI_ENABLE: true, // 展示网站阅读量、访问数 see http://busuanzi.ibruce.info/ diff --git a/themes/example/components/SideBar.js b/themes/example/components/SideBar.js index 823c9993..0e90fe1c 100644 --- a/themes/example/components/SideBar.js +++ b/themes/example/components/SideBar.js @@ -38,7 +38,7 @@ export const SideBar = (props) => { - {BLOG.COMMENT_WALINE_SERVER_URL &&