diff --git a/README.md b/README.md index eb011e50f0ef4fc6d478ab5e96ee6e282909946a..46014b17467262157ee93991b53620e21b6863e8 100644 --- a/README.md +++ b/README.md @@ -324,38 +324,6 @@ Then everything is done. Admin password is `recolic, genpasswd(recolic.net, v4)` - patch -modify functions.php to make disqus working: - -``` -// Disqus on post. -function disqus($title = null, $url = null) -{ - $comment = config('comment.system'); - $disqus = config('disqus.shortname'); - $script = <<<EOF - <script type="text/javascript"> - var getAbsolutePath = function(href) { - var link = document.createElement('a'); - link.href = href; - return link.href; - }; - var disqus_config = function () { - this.page.url = getAbsolutePath('{$url}'); // Replace PAGE_URL with your page's canonical URL variable - }; - (function() { // DON'T EDIT BELOW THIS LINE - var d = document, s = d.createElement('script'); - s.src = 'https://{$disqus}.disqus.com/embed.js'; - s.setAttribute('data-timestamp', +new Date()); - (d.head || d.body).appendChild(s); - })(); - </script> -EOF; - if (!empty($disqus) && $comment == 'disqus') { - return $script; - } -} -``` - for 'gridzone' theme, search for `.entry code` in style.css, and remove its background. Just to make it looks better... - migrate