Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to activate utteranc.es #64

Closed
mertbozkir opened this issue Jul 13, 2022 · 9 comments
Closed

How to activate utteranc.es #64

mertbozkir opened this issue Jul 13, 2022 · 9 comments

Comments

@mertbozkir
Copy link

What is the snippet to activate utteranc.es comment feature in config.toml file?

@prathamdupare
Copy link

I paste the script tag generated on utteranc.es in default.md file. So whenever I create a new blog file comments section gets generated automatically.

@pulkitkrishna00
Copy link

I paste the script tag generated on utteranc.es in default.md file. So whenever I create a new blog file comments section gets generated automatically.

Where is the "default.md" file located?

@sramekmichal
Copy link
Contributor

Probably in /archetypes folder.

@sramekmichal
Copy link
Contributor

sramekmichal commented Jan 3, 2023

I was able to activate it like this:

  1. Filled a form at https://utteranc.es/
  2. Switched my repo to public
  3. Installed https://github.com/apps/utterances to my repo
  4. Checked, if the issues feature was turned on in my repo
  5. Copied script from utterance:
<script src="https://utteranc.es/client.js"
  repo="<user/repo>"
  issue-term="title"
  label="<my-label>"
  theme="preferred-color-scheme"
  crossorigin="anonymous"
  async>
</script>

into /layouts/partials/comments.html inside my root folder.
6) Copied /themes/blist/layouts/_default/single.html into /layouts/_default/single.html inside my root folder.
7) Added:

  <div class="article-container"></div>
  {{- partial "comments.html" . }}
  </div>

at the end of single.html (inside my root folder), just before {{- partial "social.html" . -}}.

@chris-gillatt
Copy link

chris-gillatt commented Jan 4, 2023

I wrote a blog about how to get this working here https://howinteresting.co.uk/blog/2022-08-28-blog-comments-using-github-and-utterances/

However, Utterances is not maintained, and I'd recommend using Giscus instead which does the same thing. I wrote a blog about that too here: https://howinteresting.co.uk/blog/2022-09-03-blog-comments-using-github-and-giscus/

@sramekmichal
Copy link
Contributor

I was able to activate giscus at the same way as utterances 💯

@apvarun
Copy link
Owner

apvarun commented Jan 6, 2023

I think we can support this as a config in the theme without any html editing

@chris-gillatt
Copy link

That'd be great because I have to fork this theme to add Giscus in at the moment. It'd be nice to just have this repo as the upstream.

@apvarun
Copy link
Owner

apvarun commented Jan 10, 2023

Added support: https://github.com/apvarun/blist-hugo-theme/releases/tag/v2.1.0

@apvarun apvarun closed this as completed Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants