diff options
author | David Runge <dave@sleepmap.de> | 2015-08-03 19:45:26 +0200 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2015-08-03 19:45:26 +0200 |
commit | 351b776cabba788bffef25ad98e45a89b350e36a (patch) | |
tree | d7fb526b31dda44a97ec14e1b3d61c5c4488c16f /sleepmap-theme/templates | |
parent | 89b2e58a5b8f4145a292c0d672c034b409edadfa (diff) | |
download | sleepmap-351b776cabba788bffef25ad98e45a89b350e36a.tar.gz sleepmap-351b776cabba788bffef25ad98e45a89b350e36a.tar.bz2 sleepmap-351b776cabba788bffef25ad98e45a89b350e36a.tar.xz sleepmap-351b776cabba788bffef25ad98e45a89b350e36a.zip |
sleepmap-theme/templates/base.html: Removing footer. Moving sidebar widgets to the header (attached id is now called sidemenu). Adding h2 element for the menu in sidemenu. Moving site title to separate header with id banner attached to it.
Diffstat (limited to 'sleepmap-theme/templates')
-rw-r--r-- | sleepmap-theme/templates/base.html | 92 |
1 files changed, 37 insertions, 55 deletions
diff --git a/sleepmap-theme/templates/base.html b/sleepmap-theme/templates/base.html index 68a8cdf..673ffc8 100644 --- a/sleepmap-theme/templates/base.html +++ b/sleepmap-theme/templates/base.html @@ -11,16 +11,19 @@ </head> <body id="index" class="home"> - <header id="banner" class="body"> + <header id="banner"> <h1><a href="{{ SITEURL }}/index.html">{{ SITENAME }} {% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a></h1> + </header> + <header id="sidemenu" class="body"> <nav> + <h2 class="menuheader">Menu</h2> <ul> {% for title, link in MENUITEMS %} <li><a href="{{ link }}">{{ title }}</a></li> {% endfor %} {% if DISPLAY_PAGES_ON_MENU != False %} {% for p in PAGES %} - {% if p.title == "Projects" or p.title == "Music" or p.title == "Installations" %} + {% if p.title == "Projects" or p.title == "Music" or p.title == "Installations" or p.title == "About" or p.title == "Contact" %} <li {% if p == page %}class="active"{% endif %}> <a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a> <ul> @@ -34,66 +37,45 @@ {% endif %} {% endfor %} {% endif %} - <li><a href="{{ SITEURL }}/{{ ARCHIVES_URL }}">Archives</a></li> {#{% for cat, null in categories %} <li {% if cat == category %}class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li> {% endfor %}#} </ul> - </nav> - </header><!-- /#banner --> - - {% block content %} - {% endblock %} - - <aside id="sidebar"> - <div class="widget"> - <h2>Categories</h2> - <ul> - {% for cat, null in categories %} - <li {% if cat == category %}class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li> - {% endfor %} - </ul> - </div> - {% if LINKS %} - <div class="widget blogroll"> - <h2>Links</h2> - <ul> - {% for name, link in LINKS %} - <li><a href="{{ link }}">{{ name }}</a></li> - {% endfor %} - </ul> - </div><!-- /.blogroll --> - {% endif %} - {% if SOCIAL %} - <div class="widget social"> - <h2>Social</h2> - <ul> - <li><a href="{{ SITEURL }}/{{ FEED_ALL_ATOM }}" rel="alternate">atom feed</a></li> - {% if FEED_RSS %} - <li><a href="{{ SITEURL }}/{{ FEED_RSS }}" rel="alternate">rss feed</a></li> - {% endif %} - {% for name, link in SOCIAL %} - <li><a href="{{ link }}">{{ name }}</a></li> + <div class="widget"> + <h2>Categories</h2> + <ul> + {% for cat, null in categories %} + <li {% if cat == category %}class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li> {% endfor %} - </ul> - </div><!-- /.social --> - {% endif %} - </aside><!-- /#sidebar --> - - <footer id="footer" class="body"> - <address id="about" class="vcard body"> - <nav> + </ul> + </div> + {% if LINKS %} + <div class="widget blogroll"> + <h2>Links</h2> <ul> - {% for p in PAGES %} - {% if p.title == "About" or p.title == "Contact" %} - <li {% if p == page %}class="active"{% endif %}> - <a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a> - </li> - {% endif %} + {% for name, link in LINKS %} + <li><a href="{{ link }}">{{ name }}</a></li> {% endfor %} </ul> - </nav> - </address><!-- /#about --> - </footer><!-- /#footer --> + </div><!-- /.blogroll --> + {% endif %} + {% if SOCIAL %} + <div class="widget social"> + <h2>Social</h2> + <ul> + <li><a href="{{ SITEURL }}/{{ FEED_ALL_ATOM }}" rel="alternate">atom feed</a></li> + {% if FEED_RSS %} + <li><a href="{{ SITEURL }}/{{ FEED_RSS }}" rel="alternate">rss feed</a></li> + {% endif %} + {% for name, link in SOCIAL %} + <li><a href="{{ link }}">{{ name }}</a></li> + {% endfor %} + </ul> + </div><!-- /.social --> + {% endif %} + </nav> + </header><!-- /#banner --> + {% block content %} + {% endblock %} </body> </html> |