This is only useful if the entry is /also/ an index: it allows an index
page to designate an image that's in a different folder.
} else {
if ($item && $comment) { $item->comment($comment); }
my ($flags, $name, $c) =
- /^ (?: ([!]+) \s+)? # flags
+ /^ (?: ([-!]+) \s+)? # flags
(\S+) \s* # filename
(\S | \S.*\S )? # start of the comment
\s*
$/x;
my $indexp = $flags =~ /!/;
+ my $hidep = $flags =~ /-/;
$name = urldecode $name;
my $list;
$item = TrivGal::Item->new($name);
}
}
$comment = $c;
- push @$list, $item;
+ push @$list, $item unless $hidep;
}
}
if ($item && $comment) { $item->comment($comment); }