From: David Bremner Date: Mon, 1 Sep 2008 00:40:00 +0000 (-0300) Subject: rename comment pseudo-template X-Git-Tag: 0.1~29 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/b305d21917b252d53c93e3d6413104ba2abf5f29 rename comment pseudo-template --- diff --git a/IkiWiki/Plugin/postal.pm b/IkiWiki/Plugin/postal.pm index be64a3edd..345c48701 100644 --- a/IkiWiki/Plugin/postal.pm +++ b/IkiWiki/Plugin/postal.pm @@ -56,7 +56,7 @@ sub pagetemplate (@) my $content; - my $comment_page = bestlink ($page, "comments") || return; + my $comment_page = bestlink ($page, "_comments") || return; my $comment_file = $pagesources{$comment_page} || return; $content = readfile (srcfile ($comment_file)); diff --git a/test/in/_comments.mdwn b/test/in/_comments.mdwn new file mode 100644 index 000000000..88e659d46 --- /dev/null +++ b/test/in/_comments.mdwn @@ -0,0 +1,4 @@ + +Send Comment + +[[Read Comments|%%PAGE%%/comments]] diff --git a/test/in/comments.mdwn b/test/in/comments.mdwn deleted file mode 100644 index 88e659d46..000000000 --- a/test/in/comments.mdwn +++ /dev/null @@ -1,4 +0,0 @@ - -Send Comment - -[[Read Comments|%%PAGE%%/comments]]