Skip to content

Commit b071a53

Browse files
Merge pull request #50 from devjin0617/devjin0617-comment
각 포스트에 댓글을 작성할 수 있도록 Disqus 댓글기능을 추가하였습니다. (#49)
2 parents f3fe5fd + 6e4c16b commit b071a53

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

_layouts/post.html

+24
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ <h1>{{ page.title }}</h1>
2424
<article class="post-content">
2525
{{ content }}
2626
<br>
27+
28+
<!-- disqus comment -->
29+
<div id="disqus_thread"></div>
30+
2731
<div class="">
2832
<script type='text/javascript' src='https://ko-fi.com/widgets/widget_2.js'></script>
2933
<script type='text/javascript'>kofiwidget2.init('Buy Me a Coffee', '#46b798', 'A316F4N'); kofiwidget2.draw();</script>
@@ -75,3 +79,23 @@ <h4 class="post-title">{{ post.title }}</h4>
7579
});
7680
});
7781
</script>
82+
83+
<script>
84+
85+
/**
86+
* RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
87+
* LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables*/
88+
/*
89+
var disqus_config = function () {
90+
this.page.url = PAGE_URL; // Replace PAGE_URL with your page's canonical URL variable
91+
this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
92+
};
93+
*/
94+
(function() { // DON'T EDIT BELOW THIS LINE
95+
var d = document, s = d.createElement('script');
96+
s.src = '//vuejs-kr.disqus.com/embed.js';
97+
s.setAttribute('data-timestamp', +new Date());
98+
(d.head || d.body).appendChild(s);
99+
})();
100+
</script>
101+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>

0 commit comments

Comments
 (0)