aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhttp://puck42.myopenid.com/ <http://puck42.myopenid.com/@web>2009-01-05 21:02:43 -0500
committerJoey Hess <joey@kitenet.net>2009-01-05 21:02:43 -0500
commite65bdf090634f8d5ec531b2259f1bfd8fb4bc18a (patch)
tree8f621768d93a835b22566b15f0c8bd4434bcd548
parent80b074192de81a7f9092eee834518261bada4a7e (diff)
downloadikiwiki-e65bdf090634f8d5ec531b2259f1bfd8fb4bc18a.tar
ikiwiki-e65bdf090634f8d5ec531b2259f1bfd8fb4bc18a.tar.gz
-rw-r--r--doc/todo/allow_disabling_backlinks.mdwn18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/todo/allow_disabling_backlinks.mdwn b/doc/todo/allow_disabling_backlinks.mdwn
new file mode 100644
index 000000000..8f2792082
--- /dev/null
+++ b/doc/todo/allow_disabling_backlinks.mdwn
@@ -0,0 +1,18 @@
+This patch allows disabling the backlinks in the config file by setting nobacklinks to 0.
+
+It is backwards compatible, and by default enables backlinks in the generated pages.
+
+<code>
+--- IkiWiki/Render.pm.orig2 2009-01-06 14:54:01.000000000 +1300
++++ IkiWiki/Render.pm 2009-01-06 14:55:08.000000000 +1300
+@@ -107,7 +107,8 @@
+ $template->param(have_actions => 1);
+ }
+
+- my @backlinks=sort { $a->{page} cmp $b->{page} } backlinks($page);
++ my @backlinks=sort { $a->{page} cmp $b->{page} } backlinks($page)
++ unless defined $config{nobacklinks} && $config{nobacklinks} == 0;
+ my ($backlinks, $more_backlinks);
+ if (@backlinks <= $config{numbacklinks} || ! $config{numbacklinks}) {
+ $backlinks=\@backlinks;
+</code>