Kaynağa Gözat

Kill disqus.

Don't really need comments, and it's a hastle from a security
(SRI/CSP) and privacy point of view.
dev
Chris Smith 7 yıl önce
ebeveyn
işleme
44ae77e5a4
İmzalayan: Chris Smith <chris@dmdirc.com> GPG Key ID: 3A2D4BBDC4A3C9A9

+ 0
- 2
site/layouts/partials/album.html Dosyayı Görüntüle

@@ -16,5 +16,3 @@
16 16
   {{ end }}
17 17
 
18 18
 </article>
19
-
20
-{{ partial "disqus" . }}

+ 0
- 2
site/layouts/partials/article.html Dosyayı Görüntüle

@@ -8,5 +8,3 @@
8 8
   </header>
9 9
   {{ .Content }}
10 10
 </article>
11
-
12
-{{ partial "disqus" . }}

+ 0
- 13
site/layouts/partials/disqus.html Dosyayı Görüntüle

@@ -1,13 +0,0 @@
1
-<div id="disqus_thread"></div>
2
-<script>
3
-var disqus_config = function () {
4
-this.page.url = "{{ .Permalink }}";
5
-};
6
-(function() {
7
-var d = document, s = d.createElement('script');
8
-s.src = '//chameth.disqus.com/embed.js';
9
-s.setAttribute('data-timestamp', +new Date());
10
-(d.head || d.body).appendChild(s);
11
-})();
12
-</script>
13
-<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>

+ 0
- 3
site/layouts/partials/list.html Dosyayı Görüntüle

@@ -11,12 +11,9 @@
11 11
   <footer>
12 12
     <ul>
13 13
       <li><a href="{{ .Permalink }}">Read more</a></li>
14
-      <li><a href="{{ .Permalink }}#disqus_thread" class="comments"></a></li>
15 14
     </ul>
16 15
   </footer>
17 16
 </article>
18 17
 
19 18
 {{ end }}
20 19
 {{ partial "pagination" . }}
21
-
22
-<script id="dsq-count-scr" src="//chameth.disqus.com/count.js" async></script>

+ 1
- 1
site/static/res/css/style.css Dosyayı Görüntüle

@@ -305,7 +305,7 @@ ol li {
305 305
 
306 306
 /* Post */
307 307
 
308
-.post, #disqus_thread {
308
+.post {
309 309
   padding: 3em 3em 1em 3em ;
310 310
   background: #ffffff;
311 311
   border: solid 1px rgba(160, 160, 160, 0.3);

Loading…
İptal
Kaydet