Adding utteranc.es to blogdown academic hugo theme
After several hours struggling with multiple recommendations by
I still cannot see my comment section using https://utteranc.es/
I realize I did not have my webpage repo public. Hence, remembering to have your repo visibility option as Public is very important !!! Go to your repo online, under Settings tab, you can find “Change repository visibility” at the bottom of the page, change it to public
And I recommend using the simplest method to change your theme. Alternatively, you can use sources provided above.
- Install utteranc.es on your repo. You can either
Choose to install to every repo (not recommended)
Install only to your blog repo (recommended)
- Go to utteranc.es and fill our your form. Copy the copy snippet
- Go to
themes/wowchemy/layouts/_default/single.html
- Add the code snippet provided by utteranc.es right above
{{ partial "page_footer" . }}
<div class="col-12 col-lg-10ish article-style">
<script src="https://utteranc.es/client.js"
repo="mikenguyen13/bio"
issue-term="pathname"
label="utterances_blog"
theme="github-light"
crossorigin="anonymous"
async>
</script>
</div>
- Go to
config/_default/params.toml
and make sure that under “Comment”,engine = 0
- For the commentable section, you can customize as you wish. For example:
commentable = {page = false, post = true, docs = false, project = false, publication = true, talk = true}