]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/toc.pm
Merge commit '492c61f825ed792b2bd839b76777454d4102ca8c' into sipb
[ikiwiki.git] / IkiWiki / Plugin / toc.pm
index b8537d3eb02ac47e74fa13e8ca81b5df56fad424..1e888a82d0222a5814bdfe0aa86f75dc4a94c2f8 100644 (file)
@@ -18,6 +18,7 @@ sub getsetup () {
                plugin => {
                        safe => 1,
                        rebuild => undef,
+                       section => "widget",
                },
 }
 
@@ -28,6 +29,7 @@ sub preprocess (@) {
 
        if ($params{page} eq $params{destpage}) {
                $params{levels}=1 unless exists $params{levels};
+               $params{startlevel}=2 unless exists $params{startlevel};
 
                # It's too early to generate the toc here, so just record the
                # info.