Skip to content

Commit dc2ed49

Browse files
authored
Merge pull request #27 from icbd/master
Thanks! This looks nice and easy to use.
2 parents 32eda55 + 359a289 commit dc2ed49

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

_config.yml

+2
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ gitalk:
8585
# 输入Google Analytics web tracking code
8686
google_analytics:
8787

88+
utteranc:
89+
repo: # Your github repo path, also see: https://utteranc.es
8890

8991
#
9092
# !! 以下所有设置都不需要更改 !!

_includes/utteranc.html

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{% if site.utteranc %}
2+
<script src="https://utteranc.es/client.js"
3+
repo="{{ site.utteranc.repo }}"
4+
issue-term="{{ site.utteranc.issue_term | default: 'issue-term' }}"
5+
label="{{ site.utteranc.label | default: 'utteranc' }}"
6+
theme="{{ site.utteranc.theme | default: 'github-light' }}"
7+
crossorigin="{{ site.utteranc.crossorigin | default: 'anonymous' }}"
8+
async>
9+
</script>
10+
{% endif %}

_layouts/post.html

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ <h1>{{ page.title }}</h1>
3030
</div>
3131

3232
{% include disqus.html %}
33+
{% include utteranc.html %}
3334
{% include gitalk.html %}
3435
</article>
3536

0 commit comments

Comments
 (0)