diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-08-19 17:05:09 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-08-19 17:05:09 +0000 |
commit | 6a8c921ee1bbfd4c980ffaf2c43e5b45e452f4de (patch) | |
tree | d2ee62699b5610b93ee146d329203230f86f8059 /doc/todo | |
parent | ee63ca440d5b46a34e90241411273da975af8ed9 (diff) | |
download | ikiwiki-6a8c921ee1bbfd4c980ffaf2c43e5b45e452f4de.tar ikiwiki-6a8c921ee1bbfd4c980ffaf2c43e5b45e452f4de.tar.gz |
web commit by ManojSrivastava
Diffstat (limited to 'doc/todo')
-rw-r--r-- | doc/todo/varioki_--_add_template_variables___40__with_closures_for_values__41___in_ikiwiki.setup.mdwn | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/todo/varioki_--_add_template_variables___40__with_closures_for_values__41___in_ikiwiki.setup.mdwn b/doc/todo/varioki_--_add_template_variables___40__with_closures_for_values__41___in_ikiwiki.setup.mdwn index 426e169ef..431305622 100644 --- a/doc/todo/varioki_--_add_template_variables___40__with_closures_for_values__41___in_ikiwiki.setup.mdwn +++ b/doc/todo/varioki_--_add_template_variables___40__with_closures_for_values__41___in_ikiwiki.setup.mdwn @@ -39,7 +39,7 @@ ManojSrivastava 'hashvar' => '{1, 1, 2, 2}', 'toplvl' => 'sub {return $page eq "index"}', 'isblog' => 'sub {return $page =~ m,blog/.*,}', - 'category' => 'sub { return " " unless $page=~ m,^blog/,; my $p=""; my $i="<a href=\"$config{url}/blog\">Top::</a>"; my @a=split ("/",$page); shift @a; pop @a; foreach my $dir (@a) { $p.=$dir; $i.="<a href=\"$config{url}/tag/$p\">$dir</a>::"; $p.="/"; }; return $i }', + 'category' => 'sub { return " " unless $page=~ m,^blog/,; my $p=""; my $i="<a href=\"$config{url}/blog\">Top::</a>"; my @a=split ("/",$page); shift @a; pop @a; foreach my $dir (@a) { $p.=$dir; $i.="<a href=\"$config{url}/tag/$p\">$dir</a<::"; $p.="/"; }; return $i }', 'date' => 'sub { return POSIX::strftime("%d", gmtime((stat(srcfile($pagesources{$page})))[9])); }', 'year' => 'sub { return POSIX::strftime("%Y", gmtime((stat(srcfile($pagesources{$page})))[9])); }', 'month' => 'sub { return POSIX::strftime("%B", gmtime((stat(srcfile($pagesources{$page})))[9])); }', |