]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blobdiff - templates/base.html
Update for newer django
[sommitrealweird.git] / templates / base.html
index 384e601df7ffcb4c09243b2ac64e86d736f79001..eacc07e432fe9f08b4a0da82afccfb555e9f6afb 100644 (file)
@@ -3,7 +3,9 @@
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
     <head>
         <title>{% block title %}{{ title }}{% endblock %}</title>
-        <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}style/main.css" />
+       {% load static %}
+        <link rel="stylesheet" type="text/css" href="{% get_media_prefix %}style/main.css" />
+        {% block extrahead %}{% endblock %}
     </head>
     <body>
         <div id="page">
                     <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>
+                        <li><a href="/photo/">Photos</a></li>
+                        <li><a href="/blog/">Blog</a></li>
                     </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 %}
+                    {% if content_submenu %}
+                    <div id="submenu">
+                        <ul>
+                            {% for item in content_submenu %}
+                            <li><a href="{{ item.url }}">{{ item.title }}</a></li>
+                            {% endfor %}
+                        </ul>
+                    </div>
+                    {% endif %}
+                {% endblock %}
                 {% block content %}
                 {{ content }}
                 {% endblock %}
             </div>
             <div id="footer">
-                <p>Copyright &copy; 2008 - <a href="mailto:iDunno@sommitrealweird.co.uk">Brett Parker</a></p>
+                <p>Copyright &copy; 2008-2017 - <a href="mailto:iDunno@sommitrealweird.co.uk">Brett Parker</a></p>
             </div>
         </div>
     </body>