summaryrefslogtreecommitdiffstats
path: root/theme/templates
diff options
context:
space:
mode:
Diffstat (limited to 'theme/templates')
-rw-r--r--theme/templates/includes/book/footer.html17
-rw-r--r--theme/templates/site.html35
2 files changed, 21 insertions, 31 deletions
diff --git a/theme/templates/includes/book/footer.html b/theme/templates/includes/book/footer.html
deleted file mode 100644
index 65c08de..0000000
--- a/theme/templates/includes/book/footer.html
+++ /dev/null
@@ -1,17 +0,0 @@
-<div class="page-footer">
- {% if progress.current.next %}
- {% if progress.current.next.path %}
- <a href="{{ basePath }}/{{ progress.current.next.path|mdLink }}" class="navigation-link next">
- {% if _input == "README.md" %}
- Start
- {% else %}
- Next
- {% endif %}
- </a>
- {% else %}
- <div class="navigation-link coming-soon">Coming soon</div>
- {% endif %}
- {% else %}
- <div class="navigation-link finished">Finished!</div>
- {% endif %}
-</div> \ No newline at end of file
diff --git a/theme/templates/site.html b/theme/templates/site.html
index 76cbb51..6feb424 100644
--- a/theme/templates/site.html
+++ b/theme/templates/site.html
@@ -10,23 +10,30 @@
{% include "includes/book/header.html" %}
{% include "includes/book/summary.html" %}
<div class="book-body" tabindex="-1">
- <div class="page-wrapper">
- {% include "includes/book/progress.html" %}
+ <div class="body-inner">
+ <div class="page-wrapper">
+ {% include "includes/book/progress.html" %}
- <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-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>
-
- {% include "includes/book/footer.html" %}
</div>
+
+ {% if progress.current.prev and progress.current.prev.path %}
+ <a href="{{ basePath }}/{{ progress.current.prev.path|mdLink }}" class="navigation navigation-prev"><i class="fa fa-angle-left"></i></a>
+ {% endif %}
+ {% if progress.current.next and progress.current.next.path %}
+ <a href="{{ basePath }}/{{ progress.current.next.path|mdLink }}" class="navigation navigation-next"><i class="fa fa-angle-right"></i></a>
+ {% endif %}
</div>
</div>
{% endblock %}