whoishou / whoishou.com

My website whoishou.com
1 stars 0 forks source link

Implement gisgus #1

Closed whoishou closed 1 year ago

whoishou commented 1 year ago

Add comment functionality to website utilizing Gisgus

Can try starting with this https://cdwilson.dev/articles/using-giscus-for-comments-in-hugo/

The LoveIt theme also seems to have some documentation on integrating Gisgus

whoishou commented 1 year ago

I can get it to work if i edit the theme directly layouts > partial > comments.html

Adding this at the end of it

... {{- /* giscus Comment System */ -}} {{- $giscus := $comment.giscus | default dict -}} {{- if $giscus.enable -}} {{- end -}}
whoishou commented 1 year ago

However the LoveIt theme seems to have integrated support for Giscus. I updated config.toml and enabled it, put in the same config from above there but that doesn't seem to work, set a comments: true, flag at the start of a post and that didn't work either. Reaching out to xwi88 and dillonzq to see if either of them have insights that can assist with troubleshooting.

whoishou commented 1 year ago

Edited the theme directly and implemented in PROD, can review down the line if it becomes a problem