web commit by http://edward.myopenid.com/: prefix diff with a tab on each line so markdown treats it as code
parent
a3f224cb6c
commit
4f75dccb71
|
@ -15,14 +15,14 @@ Cheers,
|
||||||
> that contains the full page name. Then you just use a modified
|
> that contains the full page name. Then you just use a modified
|
||||||
> `inlinepage.tmpl`, that uses that instead of the title. --[[Joey]]
|
> `inlinepage.tmpl`, that uses that instead of the title. --[[Joey]]
|
||||||
|
|
||||||
diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm
|
diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm
|
||||||
index 59eabb6..82913ba 100644
|
index 59eabb6..82913ba 100644
|
||||||
--- a/IkiWiki/Plugin/inline.pm
|
--- a/IkiWiki/Plugin/inline.pm
|
||||||
+++ b/IkiWiki/Plugin/inline.pm
|
+++ b/IkiWiki/Plugin/inline.pm
|
||||||
@@ -229,6 +229,7 @@ sub preprocess_inline (@) { #{{{
|
@@ -229,6 +229,7 @@ sub preprocess_inline (@) { #{{{
|
||||||
$template->param(content => $content);
|
$template->param(content => $content);
|
||||||
}
|
}
|
||||||
$template->param(pageurl => urlto(bestlink($params{page}, $page), $params{destpage}));
|
$template->param(pageurl => urlto(bestlink($params{page}, $page), $params{destpage}));
|
||||||
+ $template->param(page => $page);
|
+ $template->param(page => $page);
|
||||||
$template->param(title => pagetitle(basename($page)));
|
$template->param(title => pagetitle(basename($page)));
|
||||||
$template->param(ctime => displaytime($pagectime{$page}, $params{timeformat}));
|
$template->param(ctime => displaytime($pagectime{$page}, $params{timeformat}));
|
||||||
|
|
Loading…
Reference in New Issue