@customCommentsCode global variable

When you want to add support for Publii comments plugins, it is necessary to add support for customComments under supportedFeatures of the theme.

To add support for comments plugins, you must add the following code fragment in the place where comments should be displayed:


For example our Simple theme implements this feature in the post.hbs file in the following way:

<div class="post__comments">
    <div class="wrapper">

What means that comments are displayed only if they are enabled for the given post or globally under theme settings (if post uses global settings value).

What are you waiting for?

Start building your site today.

  1. 1 Download Publii
  2. 2 Write your content
  3. 3 Publish your site
Create website