Browse Source

Don't show index in the menu

JoostSijm 6 years ago
parent
commit
2d681f4391
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/modules/backend/app.py

+ 2 - 1
app/modules/backend/app.py

@@ -41,7 +41,8 @@ def render():
     pages = Page.query.filter(Page.parent_id == None).all()
     menu = []
     for page in pages:
-        menu.append(generate_menu(page))
+        if page.title != 'index':
+            menu.append(generate_menu(page))
 
     path_base = 'app/modules/static/pages/'
     path_public = path_base + "public"