Explorar el Código

Remove custom Disqus template

digitalcraftsman hace 7 años
padre
commit
8349cf1aa1
Se han modificado 2 ficheros con 1 adiciones y 15 borrados
  1. 1
    1
      layouts/_default/single.html
  2. 0
    14
      layouts/partials/disqus.html

+ 1
- 1
layouts/_default/single.html Ver fichero

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

+ 0
- 14
layouts/partials/disqus.html Ver fichero

@@ -1,14 +0,0 @@
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>