From: http://john.choffee.co.uk/ Date: Tue, 19 Aug 2008 09:30:33 +0000 (-0400) Subject: Added a tip about intergrating Disqus comments into your blog. X-Git-Tag: 2.62~102 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9733d1f79a5f1c62e059862edcd2d266f027a9b8;p=ikiwiki.git Added a tip about intergrating Disqus comments into your blog. --- diff --git a/doc/tips/Adding_Disqus_to_your_wiki.mdwn b/doc/tips/Adding_Disqus_to_your_wiki.mdwn new file mode 100644 index 000000000..01447b009 --- /dev/null +++ b/doc/tips/Adding_Disqus_to_your_wiki.mdwn @@ -0,0 +1,26 @@ +Disqus is a comment system that you can add to your blog to manage comments. + +To add it to ikiwiki first create an account at disqus and add you blog. Then click on the Admin link at that top of the main page. + +In the admin section there should be a tab called "Tools" for you site. Select the "Generic Code" option to install your site and then tweak the settings so the comments box looks like you want. This will then create a bit of javascript. Copy that code. + +In ikiwiki templates edit the page.tmpl and somewhere down the bottom, I put mine just before the footer, paste in the code that you had from before. This will add a disqus comment box to every page on your site. + +If you want to change your blog to also use the comments then you need to edit the inlinepage.tmpl template as well. This time remove the lines + + +
  • + +and replace with + +
  • + + Comment + + Comment + +
  • + +This changes the discussion link to a Comment link that takes you to the full page for that blog entry which should contain the disqus comments form that you added before. + +Note: This does then mean that to add a comment people need to have javascript enabled.