Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.

Commit 0f8217a

Browse files
committed
chore: remove disqus
1 parent ab5cac4 commit 0f8217a

File tree

3 files changed

+2
-45
lines changed

3 files changed

+2
-45
lines changed

404.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,7 @@ <h2 style="margin-top: 50px; padding-top: 50px; border-top: 1px solid #efefef">S
1717
<h1>{{ post.title }}</h1>
1818
<p>{{ post.excerpt }}</p>
1919
<p class="authorDate inline">{{ site.authors[post.author].name }} — {{ post.date | date_to_string }}</p>
20-
</a>
21-
{% if post.comments %}
22-
<p class="commentsCount"><a href="{{ post.url }}/#comments" class="commentsLink" data-disqus-identifier="{{ post.url }}"></a></p>
23-
{% assign useComments = true %}
24-
{% endif %}
25-
</div>
20+
</a></div>
2621
{% endfor %}
2722
</div>
2823
</div>

_layouts/post.html

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,6 @@ <h1>{{ page.title }}</h1>
2222

2323
{{ content }}
2424
<p><span class="blogShare afterArticle">{{ shareLine }}</span></p>
25-
26-
{% if page.comments %}
27-
<a name="comments" id="comments"></a><div id="disqus_thread"></div>
28-
<script type="text/javascript">
29-
var disqus_title = '{{ page.title | escape }}';
30-
var disqus_url = '{{ site.url }}{{ page.url }}';
31-
var disqus_identifier = '{{ page.url }}';
32-
var disqus_shortname = 'apiaryblog';
33-
(function() {
34-
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
35-
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
36-
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
37-
})();
38-
</script>
39-
<noscript><p>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></p></noscript>
40-
<p><a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a></p>
41-
{% endif %}
42-
4325
</div>
4426
</div>
4527

index.html

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,15 @@
22
title: Welcome
33
layout: default
44
---
5-
{% assign useComments = false %}
6-
75

86
<div class="blog">
9-
107
<div class="blogArticles">
118
{% for post in site.posts %}
129
<div class="blogPost{% if post.featured %} featured{% endif %}"><a href="{{ post.url }}">
1310
<h1>{{ post.title }}</h1>
1411
<p>{{ post.excerpt }}</p>
1512
<p class="authorDate inline">{{ site.authors[post.author].name }} — {{ post.date | date_to_string }}</p>
16-
</a>
17-
{% if post.comments %}
18-
<p class="commentsCount"><a href="{{ post.url }}/#comments" class="commentsLink" data-disqus-identifier="{{ post.url }}"></a></p>
19-
{% assign useComments = true %}
20-
{% endif %}
21-
</div>
13+
</a></div>
2214
{% endfor %}
2315
</div>
2416
</div>
25-
26-
{% if useComments %}
27-
<script type="text/javascript">
28-
var disqus_shortname = 'apiaryblog';
29-
(function () {
30-
var s = document.createElement('script'); s.async = true;
31-
s.type = 'text/javascript';
32-
s.src = '//' + disqus_shortname + '.disqus.com/count.js';
33-
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
34-
}());
35-
</script>
36-
{% endif %}

0 commit comments

Comments
 (0)