]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blob - templates/base.html
Give better info for article path
[sommitrealweird.git] / templates / base.html
1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
4     <head>
5         <title>{% block title %}{{ title }}{% endblock %}</title>
6         <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}style/main.css" />
7     </head>
8     <body>
9         <div id="page">
10             <div id="headerbar">
11                 <div id="websitetitle">
12                     <h1>SommitRealWeird</h1>
13                 </div>
14                 <div id="menu">
15                     {% block menu %}
16                     <ul>
17                         <li><a href="/">Home</a></li>
18                         {% for item in content_menu %}
19                         <li><a href="{{ item.url }}">{{ item.title }}</a></li>
20                         {% endfor %}
21                         <li><a href="/photo/">Photos</a></li>
22                         <li><a href="/blog/">Blog</a></li>
23                     </ul>
24                     {% endblock %}
25                 </div>
26             </div>
27             <div id="content">
28                 {% block breadcrumb %}
29                 <div id="breadcrumb">
30                     <p>
31                     {% for item in content_breadcrumb %}
32                         {% if not forloop.last %}
33                         <a href="{{ item.url }}">{{ item.title }}</a> &gt;
34                         {%else %}
35                         {{ item.title }}
36                         {% endif %}
37                     {% endfor %}
38                     </p>
39                 </div>
40                 {% endblock %}
41                 {% block submenu %}
42                     {% if content_submenu %}
43                     <div id="submenu">
44                         <ul>
45                             {% for item in content_submenu %}
46                             <li><a href="{{ item.url }}">{{ item.title }}</a></li>
47                             {% endfor %}
48                         </ul>
49                     </div>
50                     {% endif %}
51                 {% endblock %}
52                 {% block content %}
53                 {{ content }}
54                 {% endblock %}
55             </div>
56             <div id="footer">
57                 <p>Copyright &copy; 2008 - <a href="mailto:iDunno@sommitrealweird.co.uk">Brett Parker</a></p>
58             </div>
59         </div>
60     </body>
61 </html>