Skip to content

Commit

Permalink
feat(comment): add 163gentie support
Browse files Browse the repository at this point in the history
Merge pull request #351 from EYHN/feat/163gentie
  • Loading branch information
neoFelhz authored May 16, 2017
2 parents 57d2ce7 + 7df0dfa commit f941aed
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _config.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,14 @@ materialcdn:

# Comment Systems
# Available value of "use":
# disqus | disqus_click | changyan
# disqus | disqus_click | changyan | 163gentie
comment:
use:
shortname: # duoshuo or disqus shortname
changyan_appid:
changyan_conf:
changyan_thread_key_type: path
gentie_productKey:

# Search Systems
# Available value:
Expand Down
1 change: 1 addition & 0 deletions layout/_widget/comment/163gentie/common.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<script src="https://img1.cache.netease.com/f2e/tie/yun/sdk/loader.js"></script>
2 changes: 2 additions & 0 deletions layout/_widget/comment/163gentie/enter.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<div id="cloud-tie-wrapper" class="cloud-tie-wrapper"></div>
<%- partial('_widget/comment/' + theme.comment.use + '/main') %>
8 changes: 8 additions & 0 deletions layout/_widget/comment/163gentie/main.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<script>
var cloudTieConfig = {
url: document.location.href,
sourceId: "",
productKey: "<%= theme.comment.gentie_productKey %>",
target: "cloud-tie-wrapper"
};
</script>

0 comments on commit f941aed

Please sign in to comment.