Browse Source

Remove custom Disqus template

digitalcraftsman 7 years ago
parent
commit
8349cf1aa1
2 changed files with 1 additions and 15 deletions
  1. 1
    1
      layouts/_default/single.html
  2. 0
    14
      layouts/partials/disqus.html

+ 1
- 1
layouts/_default/single.html View File

7
 
7
 
8
 {{ if .Site.Params.disqusShortname -}}
8
 {{ if .Site.Params.disqusShortname -}}
9
 <h2>Comments</h2>
9
 <h2>Comments</h2>
10
-{{ partial "disqus" . }}
10
+
11
 {{- end }}
11
 {{- end }}
12
 {{- end }}
12
 {{- end }}

+ 0
- 14
layouts/partials/disqus.html View File

1
-<div id="disqus_thread"></div>
2
-<script type="text/javascript">
3
-    /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
4
-    var disqus_shortname = '{{ .Site.Params.disqusShortname }}'; // Required - Replace '<example>' with your forum shortname
5
-
6
-    /* * * DON'T EDIT BELOW THIS LINE * * */
7
-    (function() {
8
-        var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
9
-        dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
10
-        (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
11
-    })();
12
-</script>
13
-<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
14
-</div>