summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6c546c8)
https://github.com/jmtd/ikiwiki/blob/permalink-plugin/IkiWiki/Plugin/permalink.pm
--- /dev/null
+package IkiWiki::Plugin::permalink;
+
+use warnings;
+use strict;
+use IkiWiki '3.00';
+
+sub import {
+ hook(type => "pagetemplate", id=> "permalink", call => \&pagetemplate);
+}
+
+sub pagetemplate () {
+ my %params=@_;
+ $params{template}->param(permalink => urlto($params{page},"",1));
+}
+
+1;