summaryrefslogtreecommitdiff
path: root/public/views/shared/disqus.ejs
diff options
context:
space:
mode:
authorRaccoon2017-03-03 09:22:35 +0800
committerGitHub2017-03-03 09:22:35 +0800
commit48592d692c2b8a71e3ca9e7f0bc34f230eea1542 (patch)
tree053538d49b92121e29e0e576d2e5e0b249d28537 /public/views/shared/disqus.ejs
parenta8b99638b2bc4db0dffd643b96287faf4f97e030 (diff)
parent0bea4da6238b1f46562b146b32d88fc8d8b9060a (diff)
Merge branch 'master' into feature/addSecrets
Diffstat (limited to 'public/views/shared/disqus.ejs')
-rw-r--r--public/views/shared/disqus.ejs14
1 files changed, 14 insertions, 0 deletions
diff --git a/public/views/shared/disqus.ejs b/public/views/shared/disqus.ejs
new file mode 100644
index 00000000..cceaa85c
--- /dev/null
+++ b/public/views/shared/disqus.ejs
@@ -0,0 +1,14 @@
+<div id="disqus_thread"></div>
+<script>
+var disqus_config = function () {
+ this.page.identifier = window.location.pathname.split('/').slice(-1)[0];
+};
+(function() {
+ var d = document, s = d.createElement('script');
+ s.src = '//<%= disqus %>.disqus.com/embed.js';
+ s.setAttribute('data-timestamp', +new Date());
+ (d.head || d.body).appendChild(s);
+})();
+</script>
+<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
+ \ No newline at end of file