this repo has no description
1{% macro comments() %}
2 {% if config.extra.disqus.enabled is defined and config.extra.disqus.enabled == true %}
3 {{ comments::disqus() }}
4 {% endif %}
5{% endmacro comments %}
6
7
8{% macro disqus() %}
9
10 <div id="disqus_thread"></div>
11 <script>
12 /**
13 * RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
14 * LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables */
15
16 var disqus_config = function () {
17 this.page.url = '{{ page.permalink | safe }}'; // Replace PAGE_URL with your page's canonical URL variable
18 this.page.identifier = '{{ page.permalink | safe }}'; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
19 };
20
21 (function() { // DON'T EDIT BELOW THIS LINE
22 var d = document, s = d.createElement('script');
23 s.src = 'https://{{config.extra.disqus.short_name}}.disqus.com/embed.js';
24 s.setAttribute('data-timestamp', +new Date());
25 (d.head || d.body).appendChild(s);
26 })();
27 </script>
28 <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
29
30{% endmacro disqus %}