Commits

David Chambers committed e27ed4a

Added `nav` element to base template.

Comments (0)

Files changed (2)

static/default.css

 h4          { margin: 0; padding: 1.143em 0 0; font-weight: normal; font-size: 1.3125em; line-height: 1.143em; }
 h5, h6      { margin: 0 0 -1.5em; padding: 1.5em 0 0; font-weight: normal; font-size: 1em; line-height: inherit; color: #666; }
 header      { display: block; }
+nav         { display: block; }
 ol, ul      { margin: 1.5em 0 0; padding: 0; }
 p           { margin: 1.5em 0 0; }
 

templates/base.dhtml

 		<header id="header">{% url mango.views.index as path %}{% ifequal request.path path %}
 			<h1 id="title">{{ SITE_TITLE }}</h1>{% else %}
 			<a id="title" href="{{ path }}">{{ SITE_TITLE }}</a>{% endifequal %}
-			<ul>
-				<li>{% url mango.views.archives as path %}{% ifequal request.path path %}Archives{% else %}<a href="{{ path }}">Archives</a>{% endifequal %}</li>{% if TAGS_PAGE %}
-				<li>{% url mango.views.tags as path %}{% ifequal request.path path %}Tags{% else %}<a href="{{ path }}">Tags</a>{% endifequal %}</li>{% endif %}{% if CONTACT_FORM %}
-				<li>{% url mango.views.contact as path %}{% ifequal request.path path %}Contact{% else %}<a href="{{ path }}">Contact</a>{% endifequal %}</li>{% endif %}
-			</ul>
+			<nav>
+				<ul>
+					<li>{% url mango.views.archives as path %}{% ifequal request.path path %}Archives{% else %}<a href="{{ path }}">Archives</a>{% endifequal %}</li>{% if TAGS_PAGE %}
+					<li>{% url mango.views.tags as path %}{% ifequal request.path path %}Tags{% else %}<a href="{{ path }}">Tags</a>{% endifequal %}</li>{% endif %}{% if CONTACT_FORM %}
+					<li>{% url mango.views.contact as path %}{% ifequal request.path path %}Contact{% else %}<a href="{{ path }}">Contact</a>{% endifequal %}</li>{% endif %}
+				</ul>
+			</nav>
 			<form action="{% url mango.views.search %}">
 				<div>
 					<label for="query">Search</label>