]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blobdiff - templates/base.html
Update blog templates in an effort to make them XHTML1.1 compliant
[sommitrealweird.git] / templates / base.html
index 06cc632f01d257ad54a047be52c48c752e1d7a50..ee565e117bc45884d7d802a130bce276e1ed4e5c 100644 (file)
                         {% for item in content_menu %}
                         <li><a href="{{ item.url }}">{{ item.title }}</a></li>
                         {% endfor %}
                         {% for item in content_menu %}
                         <li><a href="{{ item.url }}">{{ item.title }}</a></li>
                         {% endfor %}
-                        <li>Photos</li>
-                        <li>Blog</li>
+                        <li><a href="/photo/">Photos</a></li>
+                        <li><a href="/blog/">Blog</a></li>
                     </ul>
                     {% endblock %}
                 </div>
             </div>
             <div id="content">
                     </ul>
                     {% endblock %}
                 </div>
             </div>
             <div id="content">
+                {% block breadcrumb %}
+                <div id="breadcrumb">
+                    <p>
+                    {% for item in content_breadcrumb %}
+                        {% if not forloop.last %}
+                        <a href="{{ item.url }}">{{ item.title }}</a> &gt;
+                        {%else %}
+                        {{ item.title }}
+                        {% endif %}
+                    {% endfor %}
+                    </p>
+                </div>
+                {% endblock %}
                 {% block submenu %}
                 {% block submenu %}
-                <div id="submenu">
                     {% if content_submenu %}
                     {% if content_submenu %}
-                    <ul>
-                        {% for item in content_submenu %}
-                        <li><a href="{{ item.url }}">{{ item.title }}</a></li>
-                        {% endfor %}
-                    </ul>
+                    <div id="submenu">
+                        <ul>
+                            {% for item in content_submenu %}
+                            <li><a href="{{ item.url }}">{{ item.title }}</a></li>
+                            {% endfor %}
+                        </ul>
+                    </div>
                     {% endif %}
                     {% endif %}
-                </div>
                 {% endblock %}
                 {% block content %}
                 {{ content }}
                 {% endblock %}
                 {% block content %}
                 {{ content }}