chipzoller / hugo-clarity

A theme for Hugo based on VMware Clarity
Other
582 stars 267 forks source link

Adding Utterances Support #257

Closed rterakedis closed 2 years ago

rterakedis commented 2 years ago

Adding support for Utterances Comments

Signed-off-by: Robert Terakedis 26422950+rterakedis@users.noreply.github.com

This PR adds support for the Utterances Github-based commenting system. It's similar to the commenting scheme used on docs.microsoft.com and helps filter comments by requiring the user is logged-in via a GitHub account.

Changes / fixes

Adds a new partial (utterances.html) and modifies the comments.html partial. I've also added new parameters (commented out) in the params.toml file.

Screenshots (if applicable)

Screen Shot 2022-02-09 at 12 55 54 AM

Checklist

Ensure you have checked off the following before submitting your PR.

rterakedis commented 2 years ago

I'm in the process of switching my blog over to your awesome theme. I thought I would contribute some modifications I made to my old blog to make the switch easier. You can see an example of utterances on my old theme.

chipzoller commented 2 years ago

Thanks for the PR!

rterakedis commented 2 years ago

Happy to contribute! Thanks for considering it!

rterakedis commented 2 years ago

Also, this would close out #234 if merged.