From: Holger Schurig Date: Fri, 2 Jul 2010 10:52:00 +0000 (+0200) Subject: hierarchy.py: preliminary get_hierarchal_sitemap() X-Git-Url: https://oss.titaniummirror.com/gitweb?p=webber.git;a=commitdiff_plain;h=a7a701c7eb889909035886488497af6054d2842f hierarchy.py: preliminary get_hierarchal_sitemap() --- diff --git a/in/functions.md b/in/functions.md index c91418c..9ee7949 100644 --- a/in/functions.md +++ b/in/functions.md @@ -66,7 +66,7 @@ You'll need to specify "`root`" if your top-most page isn't named "`Home`". Defined in [[hierarchy.py|hierarchy]], where you find an example. -== get_sitemap(root, show_orphans) == +== get_linear_sitemap(root, show_orphans, level) == Returns all pages as "`(level, page, link)`" tuples, where "`page`" is a "`class File`"-object and link is a relative link from the current page to @@ -74,6 +74,8 @@ Returns all pages as "`(level, page, link)`" tuples, where "`page`" is a You'll need to specify "`root`" if your top-most page isn't named "`Home`". +The "`level`" will by default start at 1. + To put pages into the sitemap that are outside the parent/child relationships, specify "`True`" for "`show_orphans`". diff --git a/in/plugins/hierarchy.md b/in/plugins/hierarchy.md index 33658ed..8f33146 100644 --- a/in/plugins/hierarchy.md +++ b/in/plugins/hierarchy.md @@ -147,7 +147,7 @@ To generate a site map for your whole project, do something like this: <% - site = get_sitemap() + site = get_linear_sitemap() %>