rename urlpath hook into tweakurlpath for consistency's sake
Signed-off-by: intrigeri <intrigeri@boum.org>master
parent
e51089e11f
commit
39d44d443d
|
@ -938,7 +938,7 @@ sub beautify_urlpath ($) { #{{{
|
|||
$url =~ s!/index.$config{htmlext}$!/!;
|
||||
}
|
||||
|
||||
run_hooks(urlpath => sub {
|
||||
run_hooks(tweakurlpath => sub {
|
||||
$url=shift->(url => $url);
|
||||
});
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue