don't render internal-use pages, and document them
parent
5921b86fcc
commit
2ff726e875
|
@ -193,6 +193,7 @@ sub render ($) { #{{{
|
|||
my $type=pagetype($file);
|
||||
my $srcfile=srcfile($file);
|
||||
if (defined $type) {
|
||||
return if $type=~/^_/;
|
||||
my $page=pagename($file);
|
||||
delete $depends{$page};
|
||||
will_render($page, htmlpage($page), 1);
|
||||
|
|
|
@ -21,6 +21,8 @@ ikiwiki (2.21) UNRELEASED; urgency=low
|
|||
tables and the like.
|
||||
* prettydate,ddate: Don't ignore time formats passed to displaytime
|
||||
function.
|
||||
* Pages with extensions starting with "_" are internal-use, and will
|
||||
not be rendered or web-edited.
|
||||
|
||||
-- Joey Hess <joeyh@debian.org> Fri, 11 Jan 2008 15:09:37 -0500
|
||||
|
||||
|
|
|
@ -143,6 +143,11 @@ specifies the filename extension that a file must have to be htmlized using
|
|||
this plugin. This is how you can add support for new and exciting markup
|
||||
languages to ikiwiki.
|
||||
|
||||
Note that if you choose a filename extension that starts with "_",
|
||||
ikiwiki will not render the page, or allow the page to be edited with the
|
||||
web interface. This is useful for certian types of internal-use pages, but
|
||||
should generally be avoided.
|
||||
|
||||
The function is passed named parameters: "page" and "content" and should
|
||||
return the htmlized content.
|
||||
|
||||
|
|
Loading…
Reference in New Issue