summaryrefslogtreecommitdiff
path: root/IkiWiki/Render.pm
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki/Render.pm')
-rw-r--r--IkiWiki/Render.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm
index b65d200a0..600318e68 100644
--- a/IkiWiki/Render.pm
+++ b/IkiWiki/Render.pm
@@ -46,7 +46,7 @@ sub backlinks ($) { #{{{
}
@links = sort { $a->{page} cmp $b->{page} } @links;
- return \@links, [] if @links <= $config{numbacklinks};
+ return \@links, [] if @links <= $config{numbacklinks} && ! $config{numbacklinks};
return [@links[0..$config{numbacklinks}-1]],
[@links[$config{numbacklinks}..$#links]];
} #}}}