Revert "avoid showing comment post stuff on dynamic pages"
authorJoey Hess <joey@kitenet.net>
Sun, 16 May 2010 02:38:59 +0000 (22:38 -0400)
committerJoey Hess <joey@kitenet.net>
Sun, 16 May 2010 02:38:59 +0000 (22:38 -0400)
This reverts commit 4a6d5330e5b9554f1bd25b9025dd96200c6519c7.

That was too ugly, the DYNAMIC test on page.tmpl will avoid the problem
anyway -- just needs to be added.

IkiWiki/Plugin/comments.pm

index af7e7eccd89603430c7b0f4d5cee65b07c4ae02f..3cafcbe9c6860dbfb95087da454bf364617f1292 100644 (file)
@@ -742,7 +742,6 @@ sub pagetemplate (@) {
                     $template->query(name => 'commentsurl') ||
                     $template->query(name => 'atomcommentsurl') ||
                     $template->query(name => 'comments')) &&
-                   length $page && # not dynamic
                    commentsshown($page);
 
        if ($template->query(name => 'comments')) {