]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/hnb.pm
avoid showing comment post stuff on dynamic pages
[ikiwiki.git] / IkiWiki / Plugin / hnb.pm
index 40e4f945255df2b4ae21b732cd55818b41dfc821..32c9cf3ada5b1ed3ed65114177fbcade05d0eaf2 100644 (file)
@@ -10,23 +10,24 @@ package IkiWiki::Plugin::hnb;
 
 use warnings;
 use strict;
-use IkiWiki 2.00;
+use IkiWiki 3.00;
 use File::Temp qw(:mktemp);
 
-sub import { #{{{
+sub import {
        hook(type => "getsetup", id => "hnb", call => \&getsetup);
        hook(type => "htmlize", id => "hnb", call => \&htmlize);
-} #}}}
+}
 
-sub getsetup () { #{{{
+sub getsetup () {
        return
                plugin => {
                        safe => 1,
                        rebuild => 1, # format plugin
+                       section => "format",
                },
-} #}}}
+}
 
-sub htmlize (@) { #{{{
+sub htmlize (@) {
        my %params = @_;
 
        # hnb outputs version number etc. every time to STDOUT, so
@@ -52,6 +53,6 @@ sub htmlize (@) { #{{{
        $ret =~ s/<body>.*//si;
 
        return $ret;
-} #}}}
+}
 
 1;