Skip to content

Commit 6a44714

Browse files
committed
增加博客评论功能
1 parent 7ab2089 commit 6a44714

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

_config.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ author: # change following line to your infomation.
2828
skill_icon2:
2929
- name: fa-linux
3030
- name: icon-apache
31-
desc: 亲近自然,回归传统. # Describe yourself.
31+
desc: 未必凡事都要做到最完美 # Describe yourself.
3232

3333
# comment
3434
disqus: # if you wanna comment feature, go to https://disqus.com/ to get your configuration; if not, comment following two lines.
35-
config: false
36-
id: need register
35+
config: true
36+
id: ryanzhangcheng
3737

3838
# analytics
3939
## google analytics
@@ -101,3 +101,6 @@ collections:
101101
#markdown: redcarpet
102102
#highlighter: pygments
103103
#markdown_ext: ignoreme
104+
105+
# gems:
106+
# - jekyll-sitemap

_includes/comments.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{% if site.disqus %}
2+
<div><b></b>评论</b>:(需要科学上网)</div>
23
<div id="disqus_thread"></div>
34
<script>
45
/** * RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS. * LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables */
@@ -9,7 +10,7 @@
910
*/
1011
(function() {
1112
var d = document, s = d.createElement('script');
12-
s.src = '//{{ site.disqus.name }}.disqus.com/embed.js';
13+
s.src = '//{{ site.disqus.id }}.disqus.com/embed.js';
1314
s.setAttribute('data-timestamp', +new Date());
1415
(d.head || d.body).appendChild(s);
1516
})();

0 commit comments

Comments
 (0)