Skip to content

utteranc don't work #389

Answered by rshmhrj
XdpCs asked this question in Q&A
Nov 27, 2022 · 2 comments · 5 replies
Discussion options

You must be logged in to vote

Hi @XdpCs , did you add a comments.html in your layouts/partials?

It should have something like this (hardcoded values are okay for testing):

<script src="https://utteranc.es/client.js"
  repo="XdpCs/xdpcs.github.io"
  issue-term="title"
  label="Comment"
  theme="github-dark-orange"
  crossorigin="anonymous"
  async>
</script>

If that doesn't work, there are a few things to check to make sure comments display:

  1. config/_default/params.toml > [article] > showComments = true: this will enable comments on all pages
  2. if you want on only SOME pages, then set that params.toml value to false, and in the .md file you want to enable comments on, in the frontmatter at the top, add a new line with sh…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@rshmhrj
Comment options

Answer selected by XdpCs
@XdpCs
Comment options

@XdpCs
Comment options

@jpanther
Comment options

Comment options

You must be logged in to vote
1 reply
@wolfspyre
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants