summaryrefslogtreecommitdiffstats
path: root/templates/page.html
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-03-31 12:00:22 -0700
committerSamy Pessé <samypesse@gmail.com>2014-03-31 12:00:22 -0700
commit1f3f06284193fa6da12629966e0438f5a1f75bf6 (patch)
tree89d128bd5c06e12f7ce9e3c999021cc94adc98ad /templates/page.html
parent0af1886358e79b5e9f84fcdeb7017edbc185d3c7 (diff)
downloadgitbook-1f3f06284193fa6da12629966e0438f5a1f75bf6.zip
gitbook-1f3f06284193fa6da12629966e0438f5a1f75bf6.tar.gz
gitbook-1f3f06284193fa6da12629966e0438f5a1f75bf6.tar.bz2
Add base for generation
Diffstat (limited to 'templates/page.html')
-rw-r--r--templates/page.html25
1 files changed, 25 insertions, 0 deletions
diff --git a/templates/page.html b/templates/page.html
new file mode 100644
index 0000000..a0f1e89
--- /dev/null
+++ b/templates/page.html
@@ -0,0 +1,25 @@
+{% extends "layout.html" %}
+
+{% block title %}{{ input }} {{ title }}{% parent %}{% endblock %}
+{% block description %}{% endblock %}
+{% block robots %}index, follow{% endblock %}
+{% block content %}
+<div class="book {% if input == "README.md" %}with-summary{% endif %}">
+ {% include "includes/book/header.html" %}
+ {% include "includes/book/summary.html" %}
+
+ <div class="book-body">
+ <div class="page-inner">
+ {% for section in content %}
+ <section class="{{ section.type }}">
+ {% if section.type == "normal" %}
+ {% autoescape false %}{{ section.content }}{% endautoescape %}
+ {% elif section.type == "exercise" %}
+
+ {% endif %}
+ </section>
+ {% endfor %}
+ </div>
+ </div>
+</div>
+{% endblock %} \ No newline at end of file