diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-10-15 19:36:48 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-10-15 19:36:48 -0400 |
commit | 1f7f5d5e0e21920c5f15290cd34594ad91077071 (patch) | |
tree | a19302c57ed6ea46c4bf05a1ed8d840725643069 /doc/bugs/MTIME_not_set_for_inline_or_archive_entries.mdwn | |
parent | 917f54a777d152ee5963acd81bf8a2800a0507b1 (diff) | |
parent | 20e691fe20ead76d826ab77501c6e9cbc7b487e8 (diff) |
Merge branch 'master' into darcs
Diffstat (limited to 'doc/bugs/MTIME_not_set_for_inline_or_archive_entries.mdwn')
-rw-r--r-- | doc/bugs/MTIME_not_set_for_inline_or_archive_entries.mdwn | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/bugs/MTIME_not_set_for_inline_or_archive_entries.mdwn b/doc/bugs/MTIME_not_set_for_inline_or_archive_entries.mdwn new file mode 100644 index 000000000..89947b544 --- /dev/null +++ b/doc/bugs/MTIME_not_set_for_inline_or_archive_entries.mdwn @@ -0,0 +1,22 @@ +My <code>page.tmpl</code> can contain: + + Created <TMPL_VAR CTIME>. Last edited <TMPL_VAR MTIME>. + +and that works. However, if I have the same line in <code>inlinepage.tmpl</code> +or <code>archivepage.tmpl</code>, then only the <code>CTIME</code> works - the <code>MTIME</code> is blank. +This leads to an annoying inconsistency. + +Update - even though I'm not a Perl programmer, this patch seems right: + + --- /home/bothner/ikiwiki/ikiwiki/IkiWiki/Plugin/inline.pm 2008-10-01 14:29:11.000000000 -0700 + +++ ./inline.pm 2008-10-12 13:26:11.000000000 -0700 + @@ -316,6 +316,7 @@ + $template->param(pageurl => urlto(bestlink($params{page}, $page), $params{destpage})); + $template->param(title => pagetitle(basename($page))); + $template->param(ctime => displaytime($pagectime{$page}, $params{timeformat})); + + $template->param(mtime => displaytime($pagemtime{$page}, $params{timeformat})); + $template->param(first => 1) if $page eq $list[0]; + $template->param(last => 1) if $page eq $list[$#list]; + + +> [[done]], thanks |