]> oss.titaniummirror.com Git - webber.git/blobdiff - plugins/toc.py
toc.py, hierarchy.py: add new "Hide: true" page attribute
[webber.git] / plugins / toc.py
index fa22cc362bc60045eb32f7c0d1a47094b613d92e..41d31dc7947e3a8d51ad85678d75b380b1edafdb 100644 (file)
@@ -82,6 +82,10 @@ def linkify(params):
        _labels = {}
        _first = -1
 
+       # Ignore hidden pages
+       if params.file.has_key("hide") and params.file.hide:
+               return
+
        # Very small pages don't need a table-of-contents
        if params.file.contents.count("\n") < toc_min_lines:
                return