From 9733d1f79a5f1c62e059862edcd2d266f027a9b8 Mon Sep 17 00:00:00 2001 From: "http://john.choffee.co.uk/" Date: Tue, 19 Aug 2008 05:30:33 -0400 Subject: [PATCH] Added a tip about intergrating Disqus comments into your blog. --- doc/tips/Adding_Disqus_to_your_wiki.mdwn | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 doc/tips/Adding_Disqus_to_your_wiki.mdwn 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. -- 2.44.0