Skip to content

Commit ae63fd1

Browse files
committed
Refixed Disqus with JSON parsing.
1 parent 32af5c4 commit ae63fd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

layout/_third-party/comments/disqus.swig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
{% if page.comments %}
88
<script>
99
var disqus_config = function () {
10-
this.page.url = "{{ encodeURI(page.permalink) }}";
11-
this.page.identifier = "{{ encodeURI(page.path) }}";
10+
this.page.url = {{ page.permalink | json }};
11+
this.page.identifier = {{ page.path | json }};
1212
this.page.title = '{{ page.title| addslashes }}';
1313
{% if __('disqus') !== 'disqus' -%}
1414
this.language = '{{ __('disqus') }}';

0 commit comments

Comments
 (0)