X-Git-Url: https://git.sommitrealweird.co.uk/sommitrealweird.git/blobdiff_plain/c2e85644c4128b2545fd4bbe0382f4e2e502bd83..0da449be342d2024f3c87a065ed30da80c96bfa5:/templates/base.html diff --git a/templates/base.html b/templates/base.html index b471f8d..eacc07e 100644 --- a/templates/base.html +++ b/templates/base.html @@ -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"> @@ -12,26 +14,49 @@ <h1>SommitRealWeird</h1> </div> <div id="menu"> - {% block meny %} + {% block menu %} <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"> + {% block breadcrumb %} + <div id="breadcrumb"> + <p> + {% for item in content_breadcrumb %} + {% if not forloop.last %} + <a href="{{ item.url }}">{{ item.title }}</a> > + {%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 © 2008 - <a href="mailto:iDunno@sommitrealweird.co.uk">Brett Parker</a></p> + <p>Copyright © 2008-2017 - <a href="mailto:iDunno@sommitrealweird.co.uk">Brett Parker</a></p> </div> </div> </body>