diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-03-31 12:00:22 -0700 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-03-31 12:00:22 -0700 |
commit | 1f3f06284193fa6da12629966e0438f5a1f75bf6 (patch) | |
tree | 89d128bd5c06e12f7ce9e3c999021cc94adc98ad /templates/page.html | |
parent | 0af1886358e79b5e9f84fcdeb7017edbc185d3c7 (diff) | |
download | gitbook-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.html | 25 |
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 |