diff --git a/CHANGELOG.md b/CHANGELOG.md index 2536fc328f0f..be0d69df6258 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ### Enhancements +- Add support for [utterances](https://utteranc.es/) comments. [#1909](https://github.com/mmistakes/minimal-mistakes/issues/1909) - Use privacy aware embed options for YouTube and Vimeo in [responsive video helper](https://mmistakes.github.io/minimal-mistakes/docs/helpers/#responsive-video-embed). [#1964](https://github.com/mmistakes/minimal-mistakes/pull/1964) - Add `rel="nofollow noopener noreferrer"` to author profile links. [#1924](https://github.com/mmistakes/minimal-mistakes/pull/1924) - Improve color contrast of primary buttons and links. diff --git a/_config.yml b/_config.yml index 08264e5e90c0..ffba6269f0e2 100644 --- a/_config.yml +++ b/_config.yml @@ -27,7 +27,7 @@ teaser : # path of fallback teaser image, e.g. "/assets/images # breadcrumbs : false # true, false (default) words_per_minute : 200 comments: - provider : # false (default), "disqus", "discourse", "facebook", "google-plus", "staticman", "staticman_v2" "custom" + provider : # false (default), "disqus", "discourse", "facebook", "google-plus", "staticman", "staticman_v2", "utterances", "custom" disqus: shortname : # https://help.disqus.com/customer/portal/articles/466208-what-s-a-shortname- discourse: @@ -37,6 +37,8 @@ comments: appid : num_posts : # 5 (default) colorscheme : # "light" (default), "dark" + utterances: + theme : # "github-light" (default), "github-dark" staticman: allowedFields : # ['name', 'email', 'url', 'message'] branch : # "master" diff --git a/_includes/comments-providers/scripts.html b/_includes/comments-providers/scripts.html index fb3fb79f0f9e..ff9e31c22c9f 100644 --- a/_includes/comments-providers/scripts.html +++ b/_includes/comments-providers/scripts.html @@ -12,6 +12,8 @@ {% include /comments-providers/staticman.html %} {% when "staticman_v2" %} {% include /comments-providers/staticman_v2.html %} + {% when "utterances" %} + {% include /comments-providers/utterances.html %} {% when "custom" %} {% include /comments-providers/custom.html %} {% endcase %} diff --git a/_includes/comments-providers/utterances.html b/_includes/comments-providers/utterances.html new file mode 100644 index 000000000000..b1c08f3cd8eb --- /dev/null +++ b/_includes/comments-providers/utterances.html @@ -0,0 +1,20 @@ + \ No newline at end of file diff --git a/_includes/comments.html b/_includes/comments.html index 2f5f88b312dc..488e31f7ecb2 100644 --- a/_includes/comments.html +++ b/_includes/comments.html @@ -165,6 +165,9 @@