X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/db3b72c4822cf9057460d47654c35f0a5115139e..59b07af4cf3bc6acabafba826f3261c201d5e1bd:/IkiWiki/Plugin/meta.pm diff --git a/IkiWiki/Plugin/meta.pm b/IkiWiki/Plugin/meta.pm index 2e5fd7e76..d624757ba 100644 --- a/IkiWiki/Plugin/meta.pm +++ b/IkiWiki/Plugin/meta.pm @@ -37,6 +37,7 @@ sub preprocess (@) { #{{{ my $page=$params{page}; delete $params{page}; delete $params{destpage}; + delete $params{preview}; eval q{use HTML::Entities}; # Always dencode, even if encoding later, since it might not be @@ -61,6 +62,13 @@ sub preprocess (@) { #{{{ $permalink{$page}=$value; $meta{$page}.="\n"; } + elsif ($key eq 'date') { + eval q{use Date::Parse}; + if (! $@) { + my $time = str2time($value); + $IkiWiki::pagectime{$page}=$time if defined $time; + } + } else { $meta{$page}.="\n";