Skip to content

Commit

Permalink
Merge pull request jekyll#66 from DirtyF/fix-disqus-url
Browse files Browse the repository at this point in the history
Merge pull request 66
  • Loading branch information
jekyllbot authored Oct 23, 2016
2 parents efe718f + 80b5ccb commit 48f836b
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions _includes/disqus_comments.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
{% if page.comments != false and jekyll.environment == "production" %}
{% if site.url %}
{% assign disqus_url = page.url | prepend: site.url %}
{% elsif site.github.url %}
{% assign disqus_url = page.url | prepend: site.github.url %}
{% endif %}

<div id="disqus_thread"></div>
<script>
var disqus_config = function () {
this.page.url = '{{ disqus_url }}';
this.page.identifier = '{{ disqus_url }}';
this.page.url = '{{ page.url | absolute_url }}';
this.page.identifier = '{{ page.url | absolute_url }}';
};

(function() {
Expand Down

0 comments on commit 48f836b

Please sign in to comment.