Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Utterances integration #413

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
serafdev marked this conversation as resolved.
Show resolved Hide resolved

# Facebook Comments plugin
# (leave blank to disable Facebook Comments, otherwise set it to true)
facebook_comments:
Expand Down
10 changes: 10 additions & 0 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,16 @@ <h1>{{ page.title }}</h1>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
{% endif %}

{% if site.utterances_repo %}
<script src="https://utteranc.es/client.js"
repo="{{ site.utterances_repo }}"
issue-term="{{ site.utterances_issue-term }}"
theme="{{ site.utterances_theme }}"
crossorigin="{{ site.utterances_crossorigin }}"
async>
</script>
{% endif %}

{% if site.facebook_comments %}
<div class="fb-comments" data-href="{{ site.url }}{{ page.url }}" data-width="100%" data-numposts="{{ site.facebook_comments_number }}"></div>
{% endif %}
Expand Down