* Page templates can now use CTIME to show when the page was created.
authorJoey Hess <joey@kodama.kitenet.net>
Sun, 10 Feb 2008 04:05:48 +0000 (23:05 -0500)
committerJoey Hess <joey@kodama.kitenet.net>
Sun, 10 Feb 2008 04:05:48 +0000 (23:05 -0500)
IkiWiki/Render.pm
debian/changelog
doc/todo/ctime_on_blog_post_pages_.mdwn
templates/page.tmpl

index 26f7de331b51da64a020ced98cee70d6b16a6e03..2682e13ae5b6e76ac67df22c59319dba07fac51a 100644 (file)
@@ -126,6 +126,7 @@ sub genpage ($$) { #{{{
                backlinks => $backlinks,
                more_backlinks => $more_backlinks,
                mtime => displaytime($pagemtime{$page}),
+               ctime => displaytime($pagectime{$page}),
                baseurl => baseurl($page),
        );
 
index 45a26e43af52fb556bf71362a3f52d6c2289d108..8c610fe19c8248f45bfc0a90cd2b50b96c655530 100644 (file)
@@ -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.
index 4fd099d9d2ef4875de0f91e39922cb94726b0c5c..d75dcd93256ae597a74151003503fced116bec28 100644 (file)
@@ -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]]
index 3a1ac9ef882361a3aa7869fa27439642d0d0e5c5..249ee2efbd2d7f16da4b3140ce685c879bfc8730 100644 (file)
@@ -104,6 +104,7 @@ License: <TMPL_VAR LICENSE>
 
 <div class="pagedate">
 Last edited <TMPL_VAR NAME=MTIME>
+<!-- Created <TMPL_VAR NAME=CTIME> -->
 </div>
 
 </div>