A repo for my personal website
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fixing disqus

+12 -3
+12 -3
scripts/blog_item.js
··· 6 6 7 7 var converter = new showdown.Converter(); 8 8 9 + var disqus_config = function () { 10 + this.page.url = window.location.href; // Replace PAGE_URL with your page's canonical URL variable 11 + this.page.identifier = window.location.hash.substring(1); // Replace PAGE_IDENTIFIER with your page's unique identifier variable 12 + }; 13 + 9 14 (function () { 10 15 document.body.innerHTML = getBase(false, true, false, true); 11 16 ··· 47 52 <div class="page-desc" id="blog-post-content">${content}</div> 48 53 `; 49 54 50 - document.querySelector('.site-container').innerHTML += ` 51 - <div id="disqus_thread style="margin:0 auto;width:75%;"> 52 - <script src="scripts/disqus.js"></script> 55 + document.querySelector('.site-content').innerHTML += ` 56 + <div id="disqus_thread" style="margin:0 auto;width:75%;"> 53 57 <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> 54 58 </div> 55 59 `; ··· 70 74 element.classList.remove('selected'); 71 75 } 72 76 }); 77 + 78 + var d = document, s = d.createElement('script'); 79 + s.src = 'https://cityboundforest.disqus.com/embed.js'; 80 + s.setAttribute('data-timestamp', +new Date()); 81 + (d.head || d.body).appendChild(s); 73 82 74 83 setupNavAnim(document); 75 84 parseMarkdown(document);