From: Joey Hess Date: Sun, 10 Feb 2008 04:05:48 +0000 (-0500) Subject: * Page templates can now use CTIME to show when the page was created. X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/f1fcb5be9ca9e473a7a0c723871cad2c8e1493ec?ds=sidebyside * Page templates can now use CTIME to show when the page was created. --- diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm index 26f7de331..2682e13ae 100644 --- a/IkiWiki/Render.pm +++ b/IkiWiki/Render.pm @@ -126,6 +126,7 @@ sub genpage ($$) { #{{{ backlinks => $backlinks, more_backlinks => $more_backlinks, mtime => displaytime($pagemtime{$page}), + ctime => displaytime($pagectime{$page}), baseurl => baseurl($page), ); diff --git a/debian/changelog b/debian/changelog index 45a26e43a..8c610fe19 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -ikiwiki (2.31) unstable; urgency=low +ikiwiki (2.31) UNRELEASED; urgency=low [ Joey Hess ] * Revert preservation of input file modification times in output files, @@ -40,6 +40,7 @@ ikiwiki (2.31) unstable; urgency=low * Don't die if running with --getctime and rcs_getctime throws an error. There are several cases (recentchanges files, aggregated files) where some source files are not in revision control. + * Page templates can now use CTIME to show when the page was created. [ Josh Triplett ] * README.Debian: Mention user wikilists. diff --git a/doc/todo/ctime_on_blog_post_pages_.mdwn b/doc/todo/ctime_on_blog_post_pages_.mdwn index 4fd099d9d..d75dcd932 100644 --- a/doc/todo/ctime_on_blog_post_pages_.mdwn +++ b/doc/todo/ctime_on_blog_post_pages_.mdwn @@ -3,3 +3,7 @@ The user has to look at the history link to find when a blog item was posted. It would be nice if blog entry post pages could include the ctime. -- [[Edward_Betts]] + +> I've committed a change that adds a CTIME variable to page.tmpl. I left +> it commented out in the default template, since it seems like a bit of +> clutter to me. Good enough? --[[Joey]] diff --git a/templates/page.tmpl b/templates/page.tmpl index 3a1ac9ef8..249ee2efb 100644 --- a/templates/page.tmpl +++ b/templates/page.tmpl @@ -104,6 +104,7 @@ License:
Last edited +