1{%- if page.key and 2 site.comments.disqus.shortname -%} 3 4 <div id="disqus_thread"></div> 5 <script> 6 /** 7 * RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS. 8 * LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables*/ 9 var disqus_config = function () { 10 this.page.url = '{%- include snippets/page-url.html -%}'; 11 this.page.identifier = '{{ page.key }}'; 12 }; 13 (function() { // DON'T EDIT BELOW THIS LINE 14 var d = document, s = d.createElement('script'); 15 s.src = 'https://{{ site.comments.disqus.shortname }}.disqus.com/embed.js'; 16 s.setAttribute('data-timestamp', +new Date()); 17 (d.head || d.body).appendChild(s); 18 })(); 19 </script> 20 <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> 21 22{%- endif -%}