summaryrefslogtreecommitdiff
path: root/themes/hexo-theme-freemind.bithack/layout/_partial/post/comment_footer.ejs
diff options
context:
space:
mode:
Diffstat (limited to 'themes/hexo-theme-freemind.bithack/layout/_partial/post/comment_footer.ejs')
m---------themes/hexo-theme-freemind.bithack0
-rw-r--r--themes/hexo-theme-freemind.bithack/layout/_partial/post/comment_footer.ejs24
2 files changed, 24 insertions, 0 deletions
diff --git a/themes/hexo-theme-freemind.bithack b/themes/hexo-theme-freemind.bithack
deleted file mode 160000
-Subproject db335ebdc14507c7687084da084a56eb3d003f1
diff --git a/themes/hexo-theme-freemind.bithack/layout/_partial/post/comment_footer.ejs b/themes/hexo-theme-freemind.bithack/layout/_partial/post/comment_footer.ejs
new file mode 100644
index 0000000..9419fd3
--- /dev/null
+++ b/themes/hexo-theme-freemind.bithack/layout/_partial/post/comment_footer.ejs
@@ -0,0 +1,24 @@
+<% if (theme.duoshuo_shortname) { %>
+<script type="text/javascript">
+ var duoshuoQuery = { short_name: '<%= theme.duoshuo_shortname %>' };
+ (function() {
+ var ds = document.createElement('script');
+ ds.type = 'text/javascript';
+ ds.async = true;
+ ds.src = 'http://static.duoshuo.com/embed.js';
+ ds.charset = 'UTF-8';
+ (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ds);
+ })();
+</script>
+<% } else if (config.disqus_shortname){ %>
+<script type="text/javascript">
+var disqus_shortname = '<%= config.disqus_shortname %>';
+(function(){
+ var dsq = document.createElement('script');
+ dsq.type = 'text/javascript';
+ dsq.async = true;
+ dsq.src = '//' + disqus_shortname + '.disqus.com/<% if (page.comments){ %>embed.js<% } else { %>count.js<% } %>';
+ (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
+}());
+</script>
+<% } %>