-
What happened?
Expected behaviorI've added utterances support in the configuration:
Also installed utterances app on github. But the comments are not showing up on any of my articles, even if they are manually enabled. Steps to reproduce the behaviorConfiguration:
OtherWhen analysing the HTML I can see the utterances script being present in the page:
But I cannot find any div with If I add manually the div comments are showing. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If you're not seeing As noted in the theme's docs,
The theme expects Jekyll's environment value to be But if you're using something like Netlify or another service you'll have to add the environment variable yourself. I see you have a Just add https://docs.netlify.com/configure-builds/environment-variables/#app I tested by building your site locally and upon setting the correct environment variable comments appear.
|
Beta Was this translation helpful? Give feedback.
If you're not seeing
<div id="utterances-comments">
in the page source, then that likely has to do with how you're building the site.As noted in the theme's docs,
The theme expects Jekyll's environment value to be
production
... by default it'sdevelopment
. If you're building/hosting with GitHub Pages it automatically sets it to production for you.But if you're using something like Netlify or another service you'll have to add the environment variable yourself. I see you have a
netlify.toml
file so going to assume yo…