David Chambers avatar 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>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.