This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Restored the chapter nav.

  • Loading branch information...
jacobian committed Sep 25, 2012
1 parent eb9074a commit 6aeae057403c33ed98be65d481f232ee532dbab2
Showing with 15 additions and 0 deletions.
  1. +15 −0 themes/djangobook/page.html
@@ -2,6 +2,21 @@
{% block title %}{{ title }}{% endblock %}
+{% macro nav() %}
+<div class="nav">
+ {% if prev %}
+ <a href='{{ prev.link }}'>&laquo; previous</a> &loz;
+ {% endif %}
+ <a href="{{ pathto('index') }}">table of contents</a>
+ {% if next %}
+ &loz; <a href='{{ next.link }}'>next &raquo;</a>
+ {% endif %}
+</div>
+{% endmacro %}
+
+{% block hdnav %}{{ nav() }}{% endblock %}
+{% block ftnav %}{{ nav() }}{% endblock %}
+
{% block content %}
<div id="chapter-body">{{ body }}</div>
{% endblock %}

0 comments on commit 6aeae05

Please sign in to comment.