summaryrefslogtreecommitdiff
path: root/doc/plugins
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2008-10-20 14:33:19 +0200
committerintrigeri <intrigeri@boum.org>2008-10-20 14:33:19 +0200
commitfadb26bc1507f7fc2caaa873ad32c12f75c378aa (patch)
tree7ee389c28208e236cc4da4c3c51dbe9eae9234f0 /doc/plugins
parent654adc105e008b57aa5b9700d7aece2a0f7b0682 (diff)
parent4a958e0c1e1d3f49c665c5d4aa89214ecbd61bdd (diff)
Merge commit 'origin/master' into prv/po
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);