summaryrefslogtreecommitdiff
path: root/_includes/disqus-counts.html
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-08-27 02:40:08 -0600
committerHombreLaser <sebastian-440@live.com>2023-08-27 02:40:08 -0600
commitac6772f292a83217e10e38ba853c76b5666133e0 (patch)
treed0d4eb27d9482dc275d75f48a2ca029d825e52a6 /_includes/disqus-counts.html
Commit inicial
Diffstat (limited to '_includes/disqus-counts.html')
-rw-r--r--_includes/disqus-counts.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/_includes/disqus-counts.html b/_includes/disqus-counts.html
new file mode 100644
index 0000000..0c41e2b
--- /dev/null
+++ b/_includes/disqus-counts.html
@@ -0,0 +1,16 @@
+{% if site.comments and site.disqus != '' %}
+ <script type="text/javascript">
+ var disqus_shortname = '{{ site.disqus }}';
+
+ var disqus_config = function () {
+ this.page.identifier = '{{ page.url | slugify }}';
+ };
+
+ (function () {
+ var s = document.createElement('script'); s.async = true;
+ s.type = 'text/javascript';
+ s.src = '//' + disqus_shortname + '.disqus.com/count.js';
+ (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
+ }());
+ </script>
+{% endif %}