You can use Utterances for comments. You have to set UTTERANCES_REPO
to the repository Utterances will connect to.
That’s it. Elegant will take care of the rest.
You can see a working example of Utterances comments in this article.
Extra Customization
Besides setting UTTERANCES_REPO
, you also have control over following variables.
UTTERANCES_THEME
. It’s default value isgithub-light
. For other valid values refer to utterances documentationUTTERANCES_LABEL
. It’s empty by default. If set, Utterances will it to the issues it will create.
Warning
Label names are case sensitive. The label must exist in your repo. Utterances cannot attach labels that do not exist.
Emoji are supported in label names.✨💬✨
Show Utterances comments by default
Just set UTTERANCES_REPO
variable.
Hide Utterances comments by default
Unset UTTERANCES_REPO
variable.
This is the default setting.
Hide Utterances comments by default. Show on Selected
- Set
UTTERANCES_REPO
- Set
UTTERANCES_FILTER
toTrue
This will hide Utterances form on all pages.
Now to show Utterances form on selected posts, in article metadata set
utterances_filter: off
Show Utterances comments by default. Hide on Selected
- Set
UTTERANCES_REPO
- Remove
UTTERANCES_FILTER
or set it toFalse
which is its default value
This will hide Utterances form on all pages.
Now to hide Utterances form on selected posts, in article metadata set
utterances_filter: on
Комментарии
Оставьте свои комментарии