diff --git a/templates/nav.html b/templates/nav.html
index 4e91a79..95a83fa 100644
--- a/templates/nav.html
+++ b/templates/nav.html
@@ -1,9 +1,12 @@
+{% if page %}
+{% set page_section = get_section(path=page.ancestors[1], metadata_only = true) %}
+{% endif %}