CaiJimmy / hugo-theme-stack

Card-style Hugo theme designed for bloggers
https://stack.jimmycai.com
GNU General Public License v3.0
4.89k stars 1.6k forks source link

[Bug]: 设置 comment:false 评论框并没有被隐藏 #847

Closed debuginn closed 1 year ago

debuginn commented 1 year ago

What happened?

设置 comment:false 评论框并没有被隐藏

Hugo version

0.89.0

Theme version

3.17.0

What browsers are you seeing the problem on?

No response

More information about the browser

Mac, Chrome

Relevant log output

No response

Link to the page with bug

https://demo.stack.jimmycai.com

Link to the source repository

No response

Lovirr commented 1 year ago

comment:false comment: false 少了个空格?yaml要求冒号后面必须空一格

debuginn commented 1 year ago

comment:false comment: false 少了个空格?yaml要求冒号后面必须空一格

我试下

debuginn commented 1 year ago

试了下 没有用

Lovirr commented 1 year ago

在config.yaml和文章抬头的yaml段里都设置为false了吗

image image
debuginn commented 1 year ago

我想隐藏部分文章的评论

CaiJimmy commented 1 year ago

抱歉,无法复现这个 Bug,可以提供一个最小重现吗?

Sorry, I haven't been able to reproduce this bug. Could you please submit a minimal reproducible example?

debuginn commented 1 year ago

好的 我这边设置这个文章不可以进行评论,但是还是出现了评论栏目: https://github.com/debuginn/blog/blob/main/content/post/summary/debuginn-hugo-blog.md?plain=1

展现文章的链接:https://blog.debuginn.cn/p/debuginn-hugo-blog/

CaiJimmy commented 1 year ago

你提供的仓库是私密的,我看不到内容。

The link you provided is pointed to a private repository and I cannot see the content.

debuginn commented 1 year ago

奥奥 不好意思 我把 文章的 head 给你看下

---
title: "全站静态化升级完毕"
date: 2023-05-14T13:14:07+08:00
draft: false
author: "Meng小羽"
authorLink: "https://debuginn.cn"
authorEmail: "debuginn@icloud.com"
keywords: "Debug客栈"
comment: false
weight: 0
tags: [ "Debug客栈" ]
categories: [ "summary" ]
---
CaiJimmy commented 1 year ago

comments