From 5f26b226c531e67c7f865bfffeebbb1f7ab93adb Mon Sep 17 00:00:00 2001 From: serafss2 Date: Sun, 16 Feb 2020 02:05:51 -0500 Subject: [PATCH 1/3] Added Utterances integration Will enable users to comment using their github Auth0 integration. Comments are created in a form of issues in github. issue-term, theme and crossorigin are customizable following the utteranc.es doc --- _config.yml | 7 +++++++ _layouts/post.html | 10 ++++++++++ 2 files changed, 17 insertions(+) diff --git a/_config.yml b/_config.yml index 2da1cbb5f9..ad2e45b87d 100644 --- a/_config.yml +++ b/_config.yml @@ -40,6 +40,13 @@ fb_page_id: # (leave blank to disable Disqus) disqus_shortname: +# Utterances github comments (utterances_repo: github_username/repository) +# (leave blank to disable Utterances) +utterances_repo: +utterances_issue-term: pathname +utterances_theme: github-light +utterances_crossorigin: anonymous + # Facebook Comments plugin # (leave blank to disable Facebook Comments, otherwise set it to true) facebook_comments: diff --git a/_layouts/post.html b/_layouts/post.html index a8f4763a74..c568136b23 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -50,6 +50,16 @@

{{ page.title }}

{% endif %} +{% if site.utterances_repo %} + +{% endif %} + {% if site.facebook_comments %}
{% endif %} From af9908271a86287d8469184da1b7c0a4509bd9e1 Mon Sep 17 00:00:00 2001 From: serafss2 Date: Tue, 17 Mar 2020 15:15:31 -0400 Subject: [PATCH 2/3] Added Information about Utterances customization. Removed the utterances_crossorigin key --- README.md | 7 +++++++ _config.yml | 1 - 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ed6930ee08..5954d640ae 100644 --- a/README.md +++ b/README.md @@ -141,6 +141,13 @@ If you would like to add a [fade-in-down effect](http://daneden.github.io/animat See [documentation](http://bryanbraun.github.io/anchorjs/#basic-usage) for more options. +### Utterances +[Utterances](https://utteranc.es/): _A lightweight comments widget built on GitHub issues. Use GitHub issues for blog comments, wiki pages and more!_ You can turn it on by adding a github repository to `utterances_repo`, in the form of `user/repo-name`. + +The issue terminology can be customized using key `utterances_issue-term`, the default is `"pathname"`, some of the other options are `"url"` and `"title"`. The full list of options can be found in the official documentation. + +The theme can be changed using key `utterances_theme`, the default is `github-light`, the full list as of today is: `github-dark`, `github-dark-orange`, `icy-dark`, `dark-blue`, `photon-dark`. You can also find this list on the official website. + ### Put in a Pixyll Plug If you want to give credit to the Pixyll theme with a link to or my personal website somewhere, that'd be awesome. No worries if you don't. diff --git a/_config.yml b/_config.yml index ad2e45b87d..8845401190 100644 --- a/_config.yml +++ b/_config.yml @@ -45,7 +45,6 @@ disqus_shortname: utterances_repo: utterances_issue-term: pathname utterances_theme: github-light -utterances_crossorigin: anonymous # Facebook Comments plugin # (leave blank to disable Facebook Comments, otherwise set it to true) From 35540e90f15f40219beee8e674381f49a03549ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D9=81=D8=A7=D8=B1=D8=B3?= Date: Tue, 2 Jun 2020 20:29:43 -0400 Subject: [PATCH 3/3] Fix Cross Origin in template --- _layouts/post.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_layouts/post.html b/_layouts/post.html index c568136b23..ed6bc8c56a 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -55,7 +55,7 @@

{{ page.title }}

repo="{{ site.utterances_repo }}" issue-term="{{ site.utterances_issue-term }}" theme="{{ site.utterances_theme }}" - crossorigin="{{ site.utterances_crossorigin }}" + crossorigin="anonymous" async> {% endif %}