[gimp-web/gimp-web-static] Modified Navigation to not show child pages, only top



commit 3ddef94b40b88bc175132ed1b93031cf3e2b996b
Author: Pat David <patdavid gmail com>
Date:   Wed Aug 5 17:05:24 2015 -0500

    Modified Navigation to not show child pages, only top

 themes/newgimp/templates/base.html |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/themes/newgimp/templates/base.html b/themes/newgimp/templates/base.html
index 0850bf0..010f125 100644
--- a/themes/newgimp/templates/base.html
+++ b/themes/newgimp/templates/base.html
@@ -78,7 +78,9 @@
             {% endfor %}
             {% if DISPLAY_PAGES_ON_MENU %}
               {% for p in PAGES %}
-                <li{% if p == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">{{ 
p.title }}</a></li>
+                  {% if not p.parent %}
+                    <li{% if p == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">{{ 
p.title }}</a></li>
+                  {% endif %}
               {% endfor %}
             {% else %}
               {% if DISPLAY_CATEGORIES_ON_MENU %}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]