inline: Fix display of all pages when archive=yes or show=0 are used.
parent
e062693632
commit
d8cfd8d431
|
@ -212,7 +212,7 @@ sub preprocess_inline (@) {
|
|||
if ($params{feedshow} && $num < $params{feedshow}) {
|
||||
$num=$params{feedshow};
|
||||
}
|
||||
if ($params{skip}) {
|
||||
if ($params{skip} && $num) {
|
||||
$num+=$params{skip};
|
||||
}
|
||||
|
||||
|
@ -221,7 +221,7 @@ sub preprocess_inline (@) {
|
|||
filter => sub { $_[0] eq $params{page} },
|
||||
sort => exists $params{sort} ? $params{sort} : "age",
|
||||
reverse => yesno($params{reverse}),
|
||||
num => $num,
|
||||
($num ? (num => $num) : ()),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -15,6 +15,7 @@ ikiwiki (3.20091032) UNRELEASED; urgency=low
|
|||
the cgi/wiki.
|
||||
* inline: Do not generated feeds for nested inlines.
|
||||
* inline: Allow direct inclusion of non-page files in raw mode.
|
||||
* inline: Fix display of all pages when archive=yes or show=0 are used.
|
||||
|
||||
-- Joey Hess <joeyh@debian.org> Fri, 06 Nov 2009 12:04:29 -0500
|
||||
|
||||
|
|
|
@ -7,4 +7,4 @@ but not in 3.20091031.
|
|||
|
||||
>> The bug occurs only together with archive="yes" as I Just found out:
|
||||
|
||||
[[!inline pages="news/*" archive="yes" feeds="no" skip=3]]
|
||||
>>> Thanks, [[fixed|done]] in git. --[[Joey]]
|
||||
|
|
Loading…
Reference in New Issue