Skip to content

Commit e5ac227

Browse files
committed
docs: add valine support
1 parent b369a1e commit e5ac227

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

en/customization.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ You can set the value of the `enableComment` attribute in the Front Matter of th
114114

115115
**comment.handler(string)**
116116

117-
The optional value is `disqus`, `utterances` and `commento`, leave it blank to disable this feature.
117+
The optional value is `disqus`, `utterances`, `valine` and `commento`, leave it blank to disable this feature.
118118

119119
**comment.disqus.shortname(string)**
120120

@@ -124,6 +124,12 @@ The shortname of Disqus.
124124

125125
Utterances related configuration. For specific optional values, please refer to: [utterances](https://utteranc.es/). If you want the color scheme of utterances to follow eureka's, you can set `theme` to `eureka` in config params.
126126

127+
**comment.valine(object)**
128+
129+
Valine related configuration. For specific optional values, please refer to: [Config Reference | Valine](https://valine.js.org/en/configuration.html).
130+
131+
Because Hugo's config params are case-insensitive, you need to add `-` or `_` before the uppercase letters. For example, `appId` should be written as `app-Id` or other acceptable formats.
132+
127133
**comment.commento.url**
128134

129135
If self-hosting, please enter the url (e.g. https://commento.example.com) here. Otherwise leave empty.

zh/customization.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ content/
114114
115115
**comment.handler(string)**
116116
117-
可选值为`disqus`,`utterances`及`commento`,留空则不启用该功能。
117+
可选值为`disqus`,`utterances`,`valine`及`commento`,留空则不启用该功能。
118118
119119
**comment.disqus.shortname(string)**
120120
@@ -124,6 +124,12 @@ Disqus的shortname值。
124124
125125
Utterances相关配置。具体可选值可参考:[utterances](https://utteranc.es/)。如果你希望Utterances的色彩模式跟随Eureka,只需将配置项中的`theme`设为`eureka`即可。
126126
127+
**comment.valine(object)**
128+
129+
Valine相关配置。具体可选值可参考:[配置项 | Valine](https://valine.js.org/configuration.html)。
130+
131+
因为Hugo的配置文件为大小写不敏感的,因此你需要在大写字母前添加`-`或`_`。例如,`appId`应写作`app-Id`或其他有效形式。
132+
127133
**comment.commento.url**
128134
129135
如果你的commento为自托管的,该值为你的网址(例如https://commento.example.com)。否则留空。

0 commit comments

Comments
 (0)