It's nothing for readers to have more than 2 comment systems at the same time, which may confuse readers. So H2O-ac only supports 2 comment systems at the same time. In v1.4.0, the code and control logic have been refactored following the rules below:
The control configs for comment systems have 2 kinds: site config (site.comments, the comments in _config.yaml) and page config (page.comments, the comments in meta information of posts or pages).
The site config only works in posts (the pages based on post template), while doesn't work for separated pages (the pages based on page template).
If the comments has been defined in meta information of posts, the posts will use page config firstly. For separated pages, only the comments in meta information works. The final results for posts are shown in the below table.
Only the first two comment systems mostly will be shown according to the order designed in the code, even more than two comment systems are enabled. The priority of comment systems are: Disqus > Waline > Artalk > Utterances > Giscus > Twikoo.
All other information of comment systems should be defined in _config.yaml。
Comment
Frome v1.4.0,
H2O-ac
supports serveral comment systems, including Disqus, Waline, Artalk, Utterances, Giscus and Twikoo.Control logic
It's nothing for readers to have more than 2 comment systems at the same time, which may confuse readers. So
H2O-ac
only supports 2 comment systems at the same time. In v1.4.0, the code and control logic have been refactored following the rules below:site.comments
, thecomments
in_config.yaml
) and page config (page.comments
, thecomments
in meta information of posts or pages).post
template), while doesn't work for separated pages (the pages based onpage
template).comments
has been defined in meta information of posts, the posts will use page config firstly. For separated pages, only thecomments
in meta information works. The final results for posts are shown in the below table.Disqus > Waline > Artalk > Utterances > Giscus > Twikoo
._config.yaml
。Site config
Here are the settings of comment systems in
_config.yaml
:Here is the result of enabling
Disqus
andWaline
:Page config
Because the site config is only used in posts, the separated should define the enable info in meta information as follows:
As above, even
Giscus
is also enabled in the page, the page will only showWaline
andArtalk
comment systems because of the order.WARNING
The order of comment systems in
comments
will not affect the priority, which is fixed.