use htmlpage a couple of places instead of hardcoding the extension
parent
d8819689b1
commit
a1c7308b7d
|
@ -296,7 +296,7 @@ sub add_page (@) { #{{{
|
||||||
if (ref $feed->{tags}) {
|
if (ref $feed->{tags}) {
|
||||||
$template->param(tags => [map { tag => $_ }, @{$feed->{tags}}]);
|
$template->param(tags => [map { tag => $_ }, @{$feed->{tags}}]);
|
||||||
}
|
}
|
||||||
IkiWiki::writefile($guid->{page}.".html", $IkiWiki::config{srcdir},
|
IkiWiki::writefile(IkiWiki::htmlpage($guid->{page}), $IkiWiki::config{srcdir},
|
||||||
$template->output);
|
$template->output);
|
||||||
|
|
||||||
# Set the mtime, this lets the build process get the right creation
|
# Set the mtime, this lets the build process get the right creation
|
||||||
|
@ -371,7 +371,7 @@ sub remove_feeds () { #{{{
|
||||||
sub pagefile ($) { #{{{
|
sub pagefile ($) { #{{{
|
||||||
my $page=shift;
|
my $page=shift;
|
||||||
|
|
||||||
return "$IkiWiki::config{srcdir}/$page.html";
|
return "$IkiWiki::config{srcdir}/".IkiWiki::htmlpage($page);
|
||||||
} #}}}
|
} #}}}
|
||||||
|
|
||||||
1
|
1
|
||||||
|
|
|
@ -74,7 +74,7 @@ sub parentlinks ($) { #{{{
|
||||||
foreach my $dir (reverse split("/", $page)) {
|
foreach my $dir (reverse split("/", $page)) {
|
||||||
if (! $skip) {
|
if (! $skip) {
|
||||||
$path.="../";
|
$path.="../";
|
||||||
unshift @ret, { url => "$path$dir.html", page => pagetitle($dir) };
|
unshift @ret, { url => $path.htmlpage($dir), page => pagetitle($dir) };
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$skip=0;
|
$skip=0;
|
||||||
|
|
Loading…
Reference in New Issue