]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blobdiff - templates/base.html
Don't track thumbs and photos
[sommitrealweird.git] / templates / base.html
index b471f8d44bd65c5f04509270b51fb5c40daf753e..ee565e117bc45884d7d802a130bce276e1ed4e5c 100644 (file)
@@ -3,7 +3,7 @@
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
     <head>
         <title>{% block title %}{{ title }}{% endblock %}</title>
 <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" />
+        <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}style/main.css" />
     </head>
     <body>
         <div id="page">
     </head>
     <body>
         <div id="page">
                     <h1>SommitRealWeird</h1>
                 </div>
                 <div id="menu">
                     <h1>SommitRealWeird</h1>
                 </div>
                 <div id="menu">
-                    {% block meny %}
+                    {% block menu %}
                     <ul>
                     <ul>
-                        <li>Home</li>
-                        <li>Development</li>
-                        <li>Links</li>
-                        <li>People</li>
-                        <li>CSS Examples</li>
-                        <li>Photos</li>
-                        <li>Blog</li>
+                        <li><a href="/">Home</a></li>
+                        {% for item in content_menu %}
+                        <li><a href="{{ item.url }}">{{ item.title }}</a></li>
+                        {% endfor %}
+                        <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 %}
+                    {% 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 %}
                 {% block content %}
                 {{ content }}
                 {% endblock %}