summaryrefslogtreecommitdiffstats
path: root/theme
diff options
context:
space:
mode:
Diffstat (limited to 'theme')
-rw-r--r--theme/templates/page/page.html (renamed from theme/templates/page.html)6
-rw-r--r--theme/templates/page/summary.html26
2 files changed, 27 insertions, 5 deletions
diff --git a/theme/templates/page.html b/theme/templates/page/page.html
index 136971a..dbead6e 100644
--- a/theme/templates/page.html
+++ b/theme/templates/page/page.html
@@ -1,4 +1,4 @@
-{% extends "layout.html" %}
+{% extends "../layout.html" %}
{% block title %}{{ progress.current.title }} | {{ title }}{% endblock %}
@@ -27,10 +27,6 @@
{% endif %}
</section>
{% endfor %}
-
- {% if progress.current.next and progress.current.next.path %}
- <a href="{{ basePath }}/{{ progress.current.next.path|mdLink }}" />
- {% endif %}
</div>
{% endblock %}
diff --git a/theme/templates/page/summary.html b/theme/templates/page/summary.html
new file mode 100644
index 0000000..8bc4d7d
--- /dev/null
+++ b/theme/templates/page/summary.html
@@ -0,0 +1,26 @@
+{% extends "../layout.html" %}
+
+{% block title %}Table of Contents | {{ title }}{% endblock %}
+
+{% block style %}
+<link rel="stylesheet" href="{{ staticBase }}/print.css">
+{% for resource in plugins.resources.css %}
+ {% if resource.url %}
+ <link rel="stylesheet" href="{{ resource.url }}">
+ {% else %}
+ <link rel="stylesheet" href="{{ staticBase }}/plugins/{{ resource.path }}">
+ {% endif %}
+{% endfor %}
+{% endblock %}
+
+{% block content %}
+<div class="page">
+ <h1>Table of Contents</h1>
+ <p>
+ {% for chapter in toc %}
+ <a href="{{ basePath }}/{{ chapter.path|mdLink }}">{{ chapter.title }}</a><br/>
+ {% endfor %}
+ </p>
+</div>
+{% endblock %}
+