mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 00:10:07 +08:00
Fix disqus comment url
This commit is contained in:
parent
37ca013670
commit
07d7169e5f
@ -78,25 +78,19 @@
|
|||||||
{% if page.comments %}
|
{% if page.comments %}
|
||||||
|
|
||||||
<div id="disqus_thread"></div>
|
<div id="disqus_thread"></div>
|
||||||
<script>
|
<script>
|
||||||
|
var disqus_config = function () {
|
||||||
/**
|
this.page.url = '{{ page.url | absolute_url }}';
|
||||||
* RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
|
this.page.identifier = '{{ page.url | absolute_url }}';
|
||||||
* LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables*/
|
};
|
||||||
/*
|
(function() {
|
||||||
var disqus_config = function () {
|
var d = document, s = d.createElement('script');
|
||||||
this.page.url = PAGE_URL; // Replace PAGE_URL with your page's canonical URL variable
|
s.src = 'https://spacevim.disqus.com/embed.js';
|
||||||
this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
|
s.setAttribute('data-timestamp', +new Date());
|
||||||
};
|
(d.head || d.body).appendChild(s);
|
||||||
*/
|
})();
|
||||||
(function() { // DON'T EDIT BELOW THIS LINE
|
</script>
|
||||||
var d = document, s = d.createElement('script');
|
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
||||||
s.src = 'https://spacevim.disqus.com/embed.js';
|
|
||||||
s.setAttribute('data-timestamp', +new Date());
|
|
||||||
(d.head || d.body).appendChild(s);
|
|
||||||
})();
|
|
||||||
</script>
|
|
||||||
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user