summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-10-04 16:01:56 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-10-04 16:01:56 -0400
commitda5c12e9ebb6bad5e73b0b709d0bcc82657ac8e3 (patch)
treea1ce5709ae7a30c928b1f9a81c3f1df9898a6e4d
parent2fbfcd16e6d5717fea7b23d7fa82961222a6e32f (diff)
expand the set of things that can be matched contentless
-rw-r--r--IkiWiki.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm
index c059a9b9f..5e5dc739d 100644
--- a/IkiWiki.pm
+++ b/IkiWiki.pm
@@ -1982,9 +1982,7 @@ sub pagespec_contentless ($) {
while ($spec=~m{
(\w+)\([^\)]*\) # only match pagespec functions
}igx) {
- # only glob and internal can be matched contentless
- # (first approximation)
- return 0 if $1 ne "glob" && $1 ne "internal";
+ return 0 unless $1=~/^(glob|internal|creation_month|creation_day|creation_year|created_before|created_after)$/;
}
return 1;