diff --git a/config/body.html b/config/body.html index 9b381df..0ec17b0 100644 --- a/config/body.html +++ b/config/body.html @@ -1,7 +1,7 @@
-{{page.path_nav()}} +{{path_nav(page)}}
diff --git a/config/config.py b/config/config.py index 03b5212..716f61c 100644 --- a/config/config.py +++ b/config/config.py @@ -2,6 +2,12 @@ site_prefix = os.environ.get("SITE_PREFIX", "") +def path_nav(page): + files = reversed(list(page.ancestors)) + links = [f"{x.title}" for x in files] + + return f"" + def refdog_object_links(page): if "links" not in page.metadata: return "" @@ -13,7 +19,7 @@ def refdog_object_links(page): lines.append("") lines.append("")