Hexo-theme-volantis: 在front-matter中设置comments: false无效

Created on 15 Jul 2020  ·  6Comments  ·  Source: volantis-x/hexo-theme-volantis

BUG描述

复现报告

分类:反馈一个明确的BUG

  • [x] 将主题升级至最新版本。
  • [x] 下载主题官网源码运行,经过一定的步骤,可以复现此BUG。

复现步骤

  1. xxx
  2. xxx
  3. xxx

环境信息

复现地址:

截图:

浏览器、操作系统

站点配置文件


主题配置文件


更多信息

node.js & npm


package.json


如图,在front-matter中设置comments: false后,设置页依旧会显示评论。

我看到前面 @inkss 也提出了这个问题,不知道什么时候解决呢。

话说我用Pjax2分支用的好好的,换来最新版后,虽然解决了以前的一些问题,但又多了一堆问题😂

Most helpful comment

https://github.com/volantis-x/hexo-theme-volantis/blob/f1704e9c5688896654cf0e0a934ab7848f57ef66/layout/_third-party/comments/index.ejs#L1

<% if (page.comments && theme.comments.service && theme.comments.service.length > 0) { %>

All 6 comments

body: [article] 仍然有效

358

body: [article] 仍然有效

358

我看了,知道这个还有效,但总不能不修复comments这个吧。🙄

那不如把这个 comments: false 删掉算了

我怀疑你想偷懒

@xaoxuu 有不少啊

image

https://github.com/volantis-x/hexo-theme-volantis/blob/f1704e9c5688896654cf0e0a934ab7848f57ef66/layout/_third-party/comments/index.ejs#L1

<% if (page.comments && theme.comments.service && theme.comments.service.length > 0) { %>
Was this page helpful?
0 / 5 - 0 ratings

Related issues

HaleShaw picture HaleShaw  ·  3Comments

xaoxuu picture xaoxuu  ·  5Comments

xaoxuu picture xaoxuu  ·  4Comments

inkss picture inkss  ·  9Comments

Flexiston picture Flexiston  ·  7Comments