]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/bugs/multiple_pages_with_same_name.mdwn
(no commit message)
[ikiwiki.git] / doc / bugs / multiple_pages_with_same_name.mdwn
index 548954f8f94f9977fe2a40afdbf3511fe89ad069..20c38c06202c1d0b7f1fbd7f33da7f31af2cbb48 100644 (file)
@@ -20,19 +20,22 @@ Suggestions welcome.
 >> have struggled with. It makes sense. It doesn't solve the case where
 >> you have source files without any extension (eg `Makefile`), but at
 >> least it covers the common cases.
+>>
+>> I'm going to be annoying and call it "keepextension", otherwise, applied
+>> as-is. --[[Joey]] [[done]]
 
     diff --git a/IkiWiki.pm b/IkiWiki.pm
     index 4e4da11..853f905 100644
     --- a/IkiWiki.pm
     +++ b/IkiWiki.pm
-    @@ -618,7 +618,7 @@ sub pagename ($) { #{{{
+    @@ -618,7 +618,7 @@ sub pagename ($) {
      
        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}{leavesuffix};
        return $page;
-     } #}}}
+     }
      
     diff --git a/t/pagename.t b/t/pagename.t
     index 96e6a87..58811b9 100755
@@ -52,11 +55,13 @@ Suggestions welcome.
 
 I wonder if this patch will also be useful:
 
+> Reasonable, applied.
+
     diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm
     index 752d176..3f1b67b 100644
     --- a/IkiWiki/Render.pm
     +++ b/IkiWiki/Render.pm
-    @@ -279,7 +279,11 @@ sub refresh () { #{{{
+    @@ -279,7 +279,11 @@ sub refresh () {
                                else {
                                        $f=~s/^\Q$config{srcdir}\E\/?//;
                                        push @files, $f;