* Page templates can now use CTIME to show when the page was created.

master
Joey Hess 2008-02-09 23:05:48 -05:00
parent a72a620134
commit f1fcb5be9c
4 changed files with 8 additions and 1 deletions

View File

@ -126,6 +126,7 @@ sub genpage ($$) { #{{{
backlinks => $backlinks,
more_backlinks => $more_backlinks,
mtime => displaytime($pagemtime{$page}),
ctime => displaytime($pagectime{$page}),
baseurl => baseurl($page),
);

3
debian/changelog vendored
View 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.

View 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]]

View 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>