diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-03-31 17:06:38 -0700 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-03-31 17:06:40 -0700 |
commit | 1b00fc9620a1e6b52709298672b1acc16dda67cc (patch) | |
tree | d65b63bf05ab2e6a9b103c37f83fa6fe7c07ed9f /templates | |
parent | 39f1ed055e87df7a8010f7b998ec4f931997be00 (diff) | |
download | gitbook-1b00fc9620a1e6b52709298672b1acc16dda67cc.zip gitbook-1b00fc9620a1e6b52709298672b1acc16dda67cc.tar.gz gitbook-1b00fc9620a1e6b52709298672b1acc16dda67cc.tar.bz2 |
Add footer for navigation links
Diffstat (limited to 'templates')
-rw-r--r-- | templates/page.html | 37 |
1 files changed, 27 insertions, 10 deletions
diff --git a/templates/page.html b/templates/page.html index d7a23ac..270cd54 100644 --- a/templates/page.html +++ b/templates/page.html @@ -9,16 +9,33 @@ {% include "includes/book/summary.html" %} <div class="book-body"> - <div class="page-inner"> - {% for section in content %} - <section class="{{ section.type }}" id="section-{{ section.id }}"> - {% if section.type == "normal" %} - {% autoescape false %}{{ section.content }}{% endautoescape %} - {% elif section.type == "exercise" %} - {% include "./includes/book/exercise.html" with {section: section} %} - {% endif %} - </section> - {% endfor %} + <div class="page-wrapper"> + <div class="page-inner"> + {% for section in content %} + <section class="{{ section.type }}" id="section-{{ section.id }}"> + {% if section.type == "normal" %} + {% autoescape false %}{{ section.content }}{% endautoescape %} + {% elif section.type == "exercise" %} + {% include "./includes/book/exercise.html" with {section: section} %} + {% endif %} + </section> + {% endfor %} + </div> + + <div class="page-footer"> + <div class="navigation"> + {% if _input == "README.md" %} + <a href="{{ navigation.next.path }}" class="navigation-link">Start this book</a> + {% else %} + {% if navigation.prev %} + <a href="{{ navigation.prev.path }}" class="navigation-link"><i class="fa fa-chevron-left"></i> {{ navigation.prev.title }}</a> + {% endif %} + {% if navigation.next %} + <a href="{{ navigation.next.path }}" class="navigation-link">{{ navigation.next.title }} <i class="fa fa-chevron-right"></i></a> + {% endif %} + {% endif %} + </div> + </div> </div> </div> </div> |