summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--theme/templates/ebook/layout.html22
-rw-r--r--theme/templates/ebook/page.html6
-rw-r--r--theme/templates/ebook/summary.html2
3 files changed, 26 insertions, 4 deletions
diff --git a/theme/templates/ebook/layout.html b/theme/templates/ebook/layout.html
new file mode 100644
index 0000000..76efdf6
--- /dev/null
+++ b/theme/templates/ebook/layout.html
@@ -0,0 +1,22 @@
+<!DOCTYPE HTML>
+<html lang="en-US" {% block htmlTag %}{% endblock %}>
+ {{ htmlSnippet("html:start")|default("") }}
+ <head>
+ {{ htmlSnippet("head:start")|default("") }}
+ <meta charset="UTF-8">
+ <title>{% block title %}{% endblock %}</title>
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
+ <meta name="description" content="{% block description %}{% endblock %}">
+ <meta name="generator" content="GitBook {{ gitbook.version }}">
+ {% block head %}{% endblock %}
+ {{ htmlSnippet("head:end")|default("") }}
+ </head>
+ <body>
+ {{ htmlSnippet("body:start")|default("") }}
+ {% block style %}{% endblock %}
+ {% block content %}{% endblock %}
+ {% block javascript %}{% endblock %}
+ {{ htmlSnippet("body:end")|default("") }}
+ </body>
+ {{ htmlSnippet("html:end")|default("") }}
+</html>
diff --git a/theme/templates/ebook/page.html b/theme/templates/ebook/page.html
index 417ba0a..9ce7c1b 100644
--- a/theme/templates/ebook/page.html
+++ b/theme/templates/ebook/page.html
@@ -1,4 +1,4 @@
-{% extends "../layout.html" %}
+{% extends "./layout.html" %}
{% block title %}{{ progress.current.title }} | {{ title }}{% endblock %}
@@ -17,7 +17,7 @@
<div class="page">
<h1 class="book-chapter book-chapter-{{ progress.current.level|lvl }}">{{ progress.current.title }}</h1>
{% for section in content %}
- <section class="{{ section.type }}" id="section-{{ section.id }}">
+ <div class="{{ section.type }}" id="section-{{ section.id }}">
{% if section.type == "normal" %}
{% autoescape false %}{{ section.content }}{% endautoescape %}
{% elif section.type == "exercise" %}
@@ -25,7 +25,7 @@
{% elif section.type == "quiz" %}
{% include "./includes/quiz.html" with {section: section} %}
{% endif %}
- </section>
+ </div>
{% endfor %}
</div>
{% endblock %}
diff --git a/theme/templates/ebook/summary.html b/theme/templates/ebook/summary.html
index 53940f0..85388f9 100644
--- a/theme/templates/ebook/summary.html
+++ b/theme/templates/ebook/summary.html
@@ -1,4 +1,4 @@
-{% extends "../layout.html" %}
+{% extends "./layout.html" %}
{% block title %}Table of Contents | {{ title }}{% endblock %}