Skip to content

Commit 1209e6e

Browse files
committed
Config Disqus
1 parent a75ad69 commit 1209e6e

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

_layouts/post.html

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,11 @@ <h2 class="has-text-centered">{{ page.title }}</h2>
1414
{% if page.comments %}
1515
<div id="disqus_thread"></div>
1616
<script>
17-
18-
/**
19-
* RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
20-
* LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables*/
21-
/*
2217
var disqus_config = function () {
23-
this.page.url = PAGE_URL; // Replace PAGE_URL with your page's canonical URL variable
24-
this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
18+
this.page.url = "{{ site.url }}{{ page.url }}";
19+
this.page.identifier = "{{ page.url }}";
2520
};
26-
*/
27-
(function() { // DON'T EDIT BELOW THIS LINE
21+
(function() { // DON'T EDIT SCRIPT BELOW THIS LINE
2822
var d = document, s = d.createElement('script');
2923
s.src = 'https://codeindore.disqus.com/embed.js';
3024
s.setAttribute('data-timestamp', +new Date());

0 commit comments

Comments
 (0)