Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 使用默认配置开启评论功能,不生效 #307

Closed
ghost opened this issue Mar 14, 2023 · 7 comments
Closed

[BUG] 使用默认配置开启评论功能,不生效 #307

ghost opened this issue Mar 14, 2023 · 7 comments
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Mar 14, 2023

Describe the bug 描述你遇到的错误

使用从主题根目录拷贝出来的 config.toml,把配置打开:

image

部署后不生效

Expected behavior 期待的行为

可以生效

Screenshots 屏幕截图

不启用与启用 gitalk 情况下

[params.page.comment.gitalk]
enable = true

生成的 html 对比如下:

image

Build Environment 构建环境

No response

Preview Environment 预览环境

No response

Additional Information 补充信息

No response

@ghost ghost added the bug Something isn't working label Mar 14, 2023
@ghost
Copy link
Author

ghost commented Mar 14, 2023

没用自定义任何与 comment 相关的内容
image

@Lruihao
Copy link
Member

Lruihao commented Mar 14, 2023

artalk的server配置了吗?不管gitalk还是artalk只启用enable是不会生效的,要去看不同评论的配置。

@ghost
Copy link
Author

ghost commented Mar 14, 2023

目前试过两种配置。

配置1:
image

配置2:
image

都没生效,而且 hugo 编译生成的 html 都没变化

@Lruihao
Copy link
Member

Lruihao commented Mar 14, 2023

由于本地 development 环境的限制, 评论系统 , CDN 和 fingerprint 不会在 development 环境下启用。

你可以使用 hugo server -e production 命令来开启这些特性。

@ghost
Copy link
Author

ghost commented Mar 15, 2023

如果不是bug就先关闭我自己研究下吧。。

目前我用了你说的这个命令启动
image
image
发现还是没生效,有什么需要注意的事项吗?

@Lruihao
Copy link
Member

Lruihao commented Mar 15, 2023

应该不是bug,你用的这些评论都有人在用。你把缓存去掉试试。

@ghost
Copy link
Author

ghost commented Mar 15, 2023

ok

@ghost ghost closed this as completed Mar 15, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant