diff options
author | intrigeri <intrigeri@boum.org> | 2008-10-10 14:46:48 +0200 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2008-10-18 15:49:08 +0200 |
commit | 39d44d443d2271ec8787e6192b8b5811bee41ebf (patch) | |
tree | c37fb6317bf569cbfe340211354bb02696759246 | |
parent | e51089e11fc1093a253fc13ebfbd5d55912eba59 (diff) | |
download | ikiwiki-39d44d443d2271ec8787e6192b8b5811bee41ebf.tar ikiwiki-39d44d443d2271ec8787e6192b8b5811bee41ebf.tar.gz |
rename urlpath hook into tweakurlpath for consistency's sake
Signed-off-by: intrigeri <intrigeri@boum.org>
-rw-r--r-- | IkiWiki.pm | 2 | ||||
-rw-r--r-- | doc/plugins/write.mdwn | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm index f2b50e77a..36e85d413 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -938,7 +938,7 @@ sub beautify_urlpath ($) { #{{{ $url =~ s!/index.$config{htmlext}$!/!; } - run_hooks(urlpath => sub { + run_hooks(tweakurlpath => sub { $url=shift->(url => $url); }); diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn index e7656b299..884c7eefb 100644 --- a/doc/plugins/write.mdwn +++ b/doc/plugins/write.mdwn @@ -437,9 +437,9 @@ be compiled into. It should return the target filename. -### urlpath +### tweakurlpath - hook(type => "urlpath", id => "foo", call => \&urlpath); + hook(type => "tweakurlpath", id => "foo", call => \&tweakurlpath); This hook can be used to modify the internal urls generated by ikiwiki; it is run just after ikiwiki has removed the trailing |