aboutsummaryrefslogtreecommitdiff
path: root/doc/forum
diff options
context:
space:
mode:
authorsvetlana@192500fb6a2e2ef8e78d1a08cca64b1bca9833b9 <svetlana@web>2017-02-20 23:47:35 -0400
committeradmin <admin@branchable.com>2017-02-20 23:47:35 -0400
commit4a2c4842bf14239d7e7d9edcf73e8db0d50be9ae (patch)
treec5ce252941108a44170dd4cec32341ab726d8e71 /doc/forum
parentdc232c0006da77cb57fe7d59b8caaff778e255de (diff)
downloadikiwiki-4a2c4842bf14239d7e7d9edcf73e8db0d50be9ae.tar
ikiwiki-4a2c4842bf14239d7e7d9edcf73e8db0d50be9ae.tar.gz
Added a comment
Diffstat (limited to 'doc/forum')
-rw-r--r--doc/forum/Inconsistency_in_pages_behaviour/comment_5_2cbb00d925663f8fe3017a00596613d6._comment40
1 files changed, 40 insertions, 0 deletions
diff --git a/doc/forum/Inconsistency_in_pages_behaviour/comment_5_2cbb00d925663f8fe3017a00596613d6._comment b/doc/forum/Inconsistency_in_pages_behaviour/comment_5_2cbb00d925663f8fe3017a00596613d6._comment
new file mode 100644
index 000000000..15820df09
--- /dev/null
+++ b/doc/forum/Inconsistency_in_pages_behaviour/comment_5_2cbb00d925663f8fe3017a00596613d6._comment
@@ -0,0 +1,40 @@
+[[!comment format=mdwn
+ username="svetlana@192500fb6a2e2ef8e78d1a08cca64b1bca9833b9"
+ nickname="svetlana"
+ avatar="http://cdn.libravatar.org/avatar/5821f2dec97d186ce3b455b806d33035"
+ subject="comment 5"
+ date="2017-02-21T03:47:34Z"
+ content="""
+Turns out always listing backlinks (if they exist) is intended behaviour. I followed \"[[todo/allow disabling backlinks]]\" todo page by editing ~/git.ikiwiki.info/IkiWiki/Render.pm
+
+ diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm
+ index e8ed627..6142846 100644
+ --- a/IkiWiki/Render.pm
+ +++ b/IkiWiki/Render.pm
+ @@ -1,4 +1,4 @@
+ -#!/usr/bin/perl
+ +#!/usr/local/bin/perl
+
+ package IkiWiki;
+
+ @@ -111,7 +111,8 @@ sub genpage ($$) {
+ }
+ templateactions($template, $page);
+
+ - my @backlinks=sort { $a->{page} cmp $b->{page} || $a->{url} cmp $b->{url} } backlinks($page);
+ + my @backlinks=sort { $a->{page} cmp $b->{page} || $a->{url} cmp $b->{url} } backlinks($page)
+ + unless defined $config{nobacklinks} && $config{nobacklinks} == 0;
+ my ($backlinks, $more_backlinks);
+ if (@backlinks <= $config{numbacklinks} || ! $config{numbacklinks}) {
+ $backlinks=\@backlinks;
+
+
+
+Here is line in config:
+
+ nobacklinks: 1
+
+
+
+and then \"perl Makefile.PL ;$MAKE;$MAKE install\" . But then running 'ikiwiki --rebuild --setup ~/wiki/ikiwiki.setup' makes no difference. Why ...
+"""]]