1 This patch allows disabling the backlinks in the config file by setting nobacklinks to 0.
3 It is backwards compatible, and by default enables backlinks in the generated pages.
6 --- IkiWiki/Render.pm.orig2 2009-01-06 14:54:01.000000000 +1300
7 +++ IkiWiki/Render.pm 2009-01-06 14:55:08.000000000 +1300
9 $template->param(have_actions => 1);
12 - my @backlinks=sort { $a->{page} cmp $b->{page} } backlinks($page);
13 + my @backlinks=sort { $a->{page} cmp $b->{page} } backlinks($page)
14 + unless defined $config{nobacklinks} && $config{nobacklinks} == 0;
15 my ($backlinks, $more_backlinks);
16 if (@backlinks <= $config{numbacklinks} || ! $config{numbacklinks}) {
17 $backlinks=\@backlinks;