dillonzq / LoveIt

❤️A clean, elegant but advanced blog theme for Hugo 一个简洁、优雅且高效的 Hugo 主题
https://hugoloveit.com
MIT License
3.37k stars 1.07k forks source link

[BUG] Utterances comments not show #510

Open yvza opened 4 years ago

yvza commented 4 years ago

Hi guys,

after i configure utterances to my public repository through https://utteranc.es, i got this Image 2

and already implemented into config.toml Image 3

The problem is:

  1. i cant view comment when in developing mode using "hugo serve"
  2. when i view live site from netlify its show like this Image 1

How to solve that?

rogerBridge commented 3 years ago

same issue here

Yumian-Cui commented 2 years ago

@yvza @rogerBridge It worked for me after I updated the config.toml and installed the utterances app in repo. Maybe take a look at this doc.

Secd0g commented 2 years ago

hi @yvza @rogerBridge ,you can find it in the theme file: LoveIt/layouts/partials/comment.html。 Add the following code on line 4:

<div id="comments">
<script src="https://utteranc.es/client.js"
        repo="[ENTER REPO HERE]"
        issue-term="pathname"
        theme="github-light"
        crossorigin="anonymous"
        async>
</script>
</div>

For other questions, please refer to the official website:https://utteranc.es/

The complete file is as follows: