Skip to content

Commit 548f91a

Browse files
committed
Replaced disqus with discourse
1 parent c5e811c commit 548f91a

File tree

405 files changed

+417
-423
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

405 files changed

+417
-423
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,4 +142,4 @@ DEPENDENCIES
142142
github-pages
143143

144144
BUNDLED WITH
145-
1.13.6
145+
1.14.6

_includes/discourse.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<div id='discourse-comments'></div>
2+
3+
<script type="text/javascript">
4+
DiscourseEmbed = { discourseUrl: 'http://users.scala-lang.org/',
5+
discourseEmbedUrl: 'http://docs.scala-lang.org/{{ page.relative_path }}' };
6+
7+
(function() {
8+
var d = document.createElement('script'); d.type = 'text/javascript'; d.async = true;
9+
d.src = DiscourseEmbed.discourseUrl + 'javascripts/embed.js';
10+
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(d);
11+
})();
12+
</script>

_includes/disqus.txt

Lines changed: 0 additions & 18 deletions
This file was deleted.

_layouts/news-coursera.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<div class="span12">
1313
{{ content }}
14-
{% if page.disqus == true %}{% include disqus.txt %}{% endif %}
14+
{% if page.discourse == true %}{% include discourse.html %}{% endif %}
1515
</div>
1616

1717
</div>

_layouts/news.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<div class="span10">
1313
{{ content }}
14-
{% if page.disqus == true %}{% include disqus.txt %}{% endif %}
14+
{% if page.discourse == true %}{% include discourse.html %}{% endif %}
1515
</div>
1616

1717
<div class="span6">

_layouts/overview-large.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<div class="span10">
3939
{{ content }}
4040
{% include pager.txt %}
41-
{% if page.disqus == true %}{% include disqus.txt %}{% endif %}
41+
{% if page.discourse == true %}{% include discourse.html %}{% endif %}
4242
</div>
4343

4444
<div class="span6">

_layouts/overview.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
<div class="span10">
4343
{{ content }}
44-
{% if page.disqus == true %}{% include disqus.txt %}{% endif %}
44+
{% if page.discourse == true %}{% include discourse.html %}{% endif %}
4545
</div>
4646

4747
<div class="span6">

_layouts/sip-landing.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<div class="span10">
1414
{{ content }}
15-
{% if page.disqus == true %}{% include disqus.txt %}{% endif %}
15+
{% if page.discourse == true %}{% include discourse.html %}{% endif %}
1616
</div>
1717

1818
<div class="span6">

_layouts/sip.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<div class="span12">
1111
{% if page.title %}<h1>{{ page.title }}</h1>{% else %}<h1>{{ site.title }}</h1>{% endif %}
1212
{{ content }}
13-
{% if page.disqus == true %}{% include disqus.txt %}{% endif %}
13+
{% if page.discourse == true %}{% include discourse.html %}{% endif %}
1414
</div>
1515

1616
<div class="span4">

_layouts/slip.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<div class="span12">
1111
{% if page.title %}<h1>{{ page.title }}</h1>{% else %}<h1>{{ site.title }}</h1>{% endif %}
1212
{{ content }}
13-
{% if page.disqus == true %}{% include disqus.txt %}{% endif %}
13+
{% if page.discourse == true %}{% include discourse.html %}{% endif %}
1414
</div>
1515

1616
<div class="span4">

0 commit comments

Comments
 (0)