]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki.pm
htmlscrubber: Add a config setting that can be used to disable the scrubber acting...
[git.ikiwiki.info.git] / IkiWiki.pm
index 4e4da11c5a016daa9d04c0b6ee04df7f786a14a7..c0f5deab60909e825e11d62a85a9fd170ef523df 100644 (file)
@@ -618,7 +618,7 @@ sub pagename ($) { #{{{
 
        my $type=pagetype($file);
        my $page=$file;
 
        my $type=pagetype($file);
        my $page=$file;
-       $page=~s/\Q.$type\E*$// if defined $type;
+       $page=~s/\Q.$type\E*$// if defined $type && !$hooks{htmlize}{$type}{keepextension};
        return $page;
 } #}}}
 
        return $page;
 } #}}}