]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blob - templates/base.html
Changes for django 2.2
[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         {% load static %}
7         <link rel="stylesheet" type="text/css" href="{% get_media_prefix %}style/main.css" />
8         {% block extrahead %}{% endblock %}
9     </head>
10     <body>
11         <div id="page">
12             <div id="headerbar">
13                 <div id="websitetitle">
14                     <h1>SommitRealWeird</h1>
15                 </div>
16                 <div id="menu">
17                     {% block menu %}
18                     <ul>
19                         <li><a href="/">Home</a></li>
20                         {% for item in content_menu %}
21                         <li><a href="{{ item.url }}">{{ item.title }}</a></li>
22                         {% endfor %}
23                         <li><a href="/photo/">Photos</a></li>
24                         <li><a href="/blog/">Blog</a></li>
25                     </ul>
26                     {% endblock %}
27                 </div>
28             </div>
29             <div id="content">
30                 {% block breadcrumb %}
31                 <div id="breadcrumb">
32                     <p>
33                     {% for item in content_breadcrumb %}
34                         {% if not forloop.last %}
35                         <a href="{{ item.url }}">{{ item.title }}</a> &gt;
36                         {%else %}
37                         {{ item.title }}
38                         {% endif %}
39                     {% endfor %}
40                     </p>
41                 </div>
42                 {% endblock %}
43                 {% block submenu %}
44                     {% if content_submenu %}
45                     <div id="submenu">
46                         <ul>
47                             {% for item in content_submenu %}
48                             <li><a href="{{ item.url }}">{{ item.title }}</a></li>
49                             {% endfor %}
50                         </ul>
51                     </div>
52                     {% endif %}
53                 {% endblock %}
54                 {% block content %}
55                 {{ content }}
56                 {% endblock %}
57             </div>
58             <div id="footer">
59                 <p>Copyright &copy; 2008-2017 - <a href="mailto:iDunno@sommitrealweird.co.uk">Brett Parker</a></p>
60             </div>
61         </div>
62     </body>
63 </html>