summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--IkiWiki/Plugin/comments.pm1
-rw-r--r--templates/comments_comment.tmpl3
2 files changed, 4 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/comments.pm b/IkiWiki/Plugin/comments.pm
index 4cd76c5d5..58076938b 100644
--- a/IkiWiki/Plugin/comments.pm
+++ b/IkiWiki/Plugin/comments.pm
@@ -316,6 +316,7 @@ sub sessioncgi ($$) { #{{{
$content_tmpl->param(body => $body);
$content_tmpl->param(anchor => "$anchor");
$content_tmpl->param(permalink => "$baseurl#$anchor");
+ $content_tmpl->param(date => formattime(time, "%X %x"));
my $content = $content_tmpl->output;
diff --git a/templates/comments_comment.tmpl b/templates/comments_comment.tmpl
index 56a28753e..8e6affb0d 100644
--- a/templates/comments_comment.tmpl
+++ b/templates/comments_comment.tmpl
@@ -15,6 +15,9 @@
<TMPL_IF NAME="PERMALINK">
[[!meta permalink="<TMPL_VAR PERMALINK ESCAPE=HTML>"]]
</TMPL_IF>
+<TMPL_IF NAME="DATE">
+[[!meta date="<TMPL_VAR DATE ESCAPE=HTML>"]]
+</TMPL_IF>
<TMPL_IF NAME="ANCHOR">
</div>