aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-05-02 13:44:13 -0400
committerJoey Hess <joey@kitenet.net>2010-05-02 13:44:13 -0400
commit970373548fda77223ebbeb6aadbdbe4884b67cef (patch)
tree96bff9d98712ea9a0171ebe6620edea46b7f0e7d /doc
parentf9e41d19b77f677a58bb22e1db47627cf9faa57f (diff)
downloadikiwiki-970373548fda77223ebbeb6aadbdbe4884b67cef.tar
ikiwiki-970373548fda77223ebbeb6aadbdbe4884b67cef.tar.gz
Add parameter to displaytime to specify that it is a pubdate, and in html5 mode, use time tag.
Diffstat (limited to 'doc')
-rw-r--r--doc/bugs/html5_support.mdwn3
-rw-r--r--doc/plugins/write.mdwn5
2 files changed, 7 insertions, 1 deletions
diff --git a/doc/bugs/html5_support.mdwn b/doc/bugs/html5_support.mdwn
index dca60d57e..386a3094a 100644
--- a/doc/bugs/html5_support.mdwn
+++ b/doc/bugs/html5_support.mdwn
@@ -133,6 +133,9 @@ As a workaround:
> Also, the [[plugins/relativedate]] plugin needs to be updated to
> support relatatizing the contents of time elements. --[[Joey]]
+> Done and done; in html5 mode it uses the time tag, and even
+> adds pubdate when displaying ctimes. --[[Joey]]
+
## tidy plugin
Will reformat html5 to html4.
diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn
index a9ea7db73..5e7042c3b 100644
--- a/doc/plugins/write.mdwn
+++ b/doc/plugins/write.mdwn
@@ -938,13 +938,16 @@ search for files.
If the directory name is not absolute, ikiwiki will assume it is in
the parent directory of the configured underlaydir.
-### `displaytime($;$)`
+### `displaytime($;$$)`
Given a time, formats it for display.
The optional second parameter is a strftime format to use to format the
time.
+If the third parameter is true, this is the publication time of a page.
+(Ie, set the html5 pubdate attribute.)
+
### `gettext`
This is the standard gettext function, although slightly optimised.