Skip to content

Commit

Permalink
remove utterances and add giscus
Browse files Browse the repository at this point in the history
  • Loading branch information
shouts77 committed Jan 5, 2023
1 parent 30e8d2b commit 63edfd4
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 20 deletions.
6 changes: 6 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ utterances:
label: Comment
branch: master

giscus:
repo: shouts77/shouts77.github.io
repo_id: R_kgDOIpvPCA
category: Announcements
category_id: DIC_kwDOIpvPCM4CTabv

google_analytics:
ua:
# ua: UA-110224147-1
Expand Down
37 changes: 17 additions & 20 deletions _includes/comment.html
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
{% if page.comment != false %}
<div class="giscus"></div>
<div class="post-comments">
{% if site.comment-support == "disqus" %}
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_shortname = '{{ site.disqus.id }}'; // required: replace example with your forum shortname
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
{% endif %}
{% if site.comment-support == "utterances" %}
<script src="https://utteranc.es/client.js"
repo="{{ site.utterances.repo }}"
{% if page.issue-number %}issue-number="{{ page.issue-number }}"{% else %}issue-term="{{ site.utterances.issue-term }}"{% endif %}
label="{{ site.utterances.label }}"
branch="{{ site.utterances.branch }}"
<script src="https://giscus.app/client.js"
data-repo="{{ site.giscus.repo }}"
data-repo-id="{{ site.giscus.repo_id }}"
data-category="{{ site.giscus.category }}"
data-category-id="{{ site.giscus.category_id }}"
data-reactions-enabled="1"
data-emit-metadata="0"
data-input-position="bottom"
data-theme="light"
data-lang="ko"
crossorigin="anonymous"
data-mapping="specific"
data-term="{{ page.resource }}"
data-strict="0"
async>
</script>
{% endif %}
</script>
</div>
{% endif %}
{% endif %}
3 changes: 3 additions & 0 deletions giscus.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"origins": ["https://shouts77.github.io"]
}

0 comments on commit 63edfd4

Please sign in to comment.