summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-02-09 23:05:48 -0500
committerJoey Hess <joey@kodama.kitenet.net>2008-02-09 23:05:48 -0500
commitf1fcb5be9ca9e473a7a0c723871cad2c8e1493ec (patch)
treea788bb888d2fc1fccb3e90767fd661ac6ea24b94
parenta72a620134c92396fac89a1868e5727160001ab7 (diff)
* Page templates can now use CTIME to show when the page was created.
-rw-r--r--IkiWiki/Render.pm1
-rw-r--r--debian/changelog3
-rw-r--r--doc/todo/ctime_on_blog_post_pages_.mdwn4
-rw-r--r--templates/page.tmpl1
4 files changed, 8 insertions, 1 deletions
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: <TMPL_VAR LICENSE>
<div class="pagedate">
Last edited <TMPL_VAR NAME=MTIME>
+<!-- Created <TMPL_VAR NAME=CTIME> -->
</div>
</div>