diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-12-11 15:01:26 -0500 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-12-11 15:01:26 -0500 |
commit | b67632cdcdd333cf0a88d03c0f7e6e62921f32c3 (patch) | |
tree | caa351c9a90288cbc3cef536fda40b6f4e7a5922 /IkiWiki.pm | |
parent | 2cd7eecf896261834bcd66d8ec3a9fd3bb7236d8 (diff) | |
download | ikiwiki-b67632cdcdd333cf0a88d03c0f7e6e62921f32c3.tar ikiwiki-b67632cdcdd333cf0a88d03c0f7e6e62921f32c3.tar.gz |
inline: Support feedfile option to change the filename of the feed generated.
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r-- | IkiWiki.pm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm index 2ad2f792d..1c68c2cb3 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -666,11 +666,15 @@ sub newpagefile ($$) { #{{{ } } #}}} -sub targetpage ($$) { #{{{ +sub targetpage ($$;$) { #{{{ my $page=shift; my $ext=shift; + my $filename=shift; - if (! $config{usedirs} || $page eq 'index') { + if (defined $filename) { + return $page."/".$filename.".".$ext; + } + elsif (! $config{usedirs} || $page eq 'index') { return $page.".".$ext; } else { |