]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blobdiff - templates/base.html
Add basic submenu support
[sommitrealweird.git] / templates / base.html
index 384e601df7ffcb4c09243b2ac64e86d736f79001..06cc632f01d257ad54a047be52c48c752e1d7a50 100644 (file)
@@ -16,7 +16,7 @@
                     <ul>
                         <li><a href="/">Home</a></li>
                         {% for item in content_menu %}
                     <ul>
                         <li><a href="/">Home</a></li>
                         {% for item in content_menu %}
-                        <li><a href="/{{ item.url }}">{{ item.title }}</a></li>
+                        <li><a href="{{ item.url }}">{{ item.title }}</a></li>
                         {% endfor %}
                         <li>Photos</li>
                         <li>Blog</li>
                         {% endfor %}
                         <li>Photos</li>
                         <li>Blog</li>
                 </div>
             </div>
             <div id="content">
                 </div>
             </div>
             <div id="content">
+                {% block submenu %}
+                <div id="submenu">
+                    {% if content_submenu %}
+                    <ul>
+                        {% for item in content_submenu %}
+                        <li><a href="{{ item.url }}">{{ item.title }}</a></li>
+                        {% endfor %}
+                    </ul>
+                    {% endif %}
+                </div>
+                {% endblock %}
                 {% block content %}
                 {{ content }}
                 {% endblock %}
                 {% block content %}
                 {{ content }}
                 {% endblock %}