]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/todo/edittemplate_should_support_uuid__44___date_variables.mdwn
(no commit message)
[git.ikiwiki.info.git] / doc / todo / edittemplate_should_support_uuid__44___date_variables.mdwn
1 [[!tag wishlist]]
3 I use a default template for all new pages:
5     \[[!meta title="<TMPL_VAR name>"]]
6     \[[!meta author=]]
7     \[[!meta date="<TMPL_VAR time>"]]
8     \[[!meta guid="urn:uuid:<TMPL_VAR uuid>"]]
9     \[[!tag ]]
11 This encourages me to include useful metadata on the page.  In particular, though, I've modified the `edittemplate` plugin to generate a uuid for use in the guid, for use in `inline`.  Importantly, this keeps `inline` from flooding aggregators when I rename these pages.
13 I've also noticed that IkiWiki seems to use the creation time for the generated page for the page date.  This means that when I do a rebuild, `inline`d pages get shuffled.  The inclusion of a `time` variable in `edittemplate` (and in a `meta` declaration for all such pages) prevents the date from changing unexpectedly.
15 I've already made these changes in my installation, and have made my patches available in the `edittemplate` branch of my repository, which [[I've posted|git]].