1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-23 17:49:57 +08:00

Fix disqus comment url

This commit is contained in:
wsdjeg 2018-01-25 19:54:08 +08:00
parent 37ca013670
commit 07d7169e5f

View File

@ -74,30 +74,24 @@
</div> </div>
{{ content }} {{ content }}
{% if page.comments %}
<div id="disqus_thread"></div>
<script>
/** {% if page.comments %}
* RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
* LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables*/ <div id="disqus_thread"></div>
/* <script>
var disqus_config = function () { var disqus_config = function () {
this.page.url = PAGE_URL; // Replace PAGE_URL with your page's canonical URL variable this.page.url = '{{ page.url | absolute_url }}';
this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable this.page.identifier = '{{ page.url | absolute_url }}';
}; };
*/ (function() {
(function() { // DON'T EDIT BELOW THIS LINE var d = document, s = d.createElement('script');
var d = document, s = d.createElement('script'); s.src = 'https://spacevim.disqus.com/embed.js';
s.src = 'https://spacevim.disqus.com/embed.js'; s.setAttribute('data-timestamp', +new Date());
s.setAttribute('data-timestamp', +new Date()); (d.head || d.body).appendChild(s);
(d.head || d.body).appendChild(s); })();
})(); </script>
</script> <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
{% endif %} {% endif %}
</section> </section>