summaryrefslogtreecommitdiff
path: root/doc/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'doc/plugins')
-rw-r--r--doc/plugins/relativedate.mdwn2
-rw-r--r--doc/plugins/write.mdwn8
2 files changed, 8 insertions, 2 deletions
diff --git a/doc/plugins/relativedate.mdwn b/doc/plugins/relativedate.mdwn
index ecbdf68bf..121bce477 100644
--- a/doc/plugins/relativedate.mdwn
+++ b/doc/plugins/relativedate.mdwn
@@ -1,4 +1,4 @@
-[[!template id=plugin name=prettydate author="[[Joey]]"]]
+[[!template id=plugin name=relativedate author="[[Joey]]"]]
[[!tag type/date]]
This plugin lets dates be displayed in relative form. Examples: "2 days ago",
diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn
index 884c7eefb..857d176d5 100644
--- a/doc/plugins/write.mdwn
+++ b/doc/plugins/write.mdwn
@@ -196,7 +196,6 @@ generating the page.
hook(type => "pagetemplate", id => "foo", call => \&pagetemplate);
-
[[Templates|wikitemplates]] are filled out for many different things in
ikiwiki, like generating a page, or part of a blog page, or an rss feed, or
a cgi. This hook allows modifying the variables available on those
@@ -361,6 +360,13 @@ This hook is called whenever ikiwiki normally saves its state, just before
the state is saved. The function can save other state, modify values before
they're saved, etc.
+### displaytime
+
+ hook(type => "displaytime", id => "foo", call => \&display);
+
+This hook can be registered to override the regular `displaytime` function.
+Only the last displaytime hook will be used.
+
### renamepage
hook(type => "renamepage", id => "foo", call => \&renamepage);