summaryrefslogtreecommitdiffstats
path: root/theme
diff options
context:
space:
mode:
Diffstat (limited to 'theme')
-rw-r--r--theme/templates/ebook/glossary.html2
-rw-r--r--theme/templates/ebook/page.html19
-rw-r--r--theme/templates/ebook/summary.html13
3 files changed, 13 insertions, 21 deletions
diff --git a/theme/templates/ebook/glossary.html b/theme/templates/ebook/glossary.html
index 8076c4d..ce10c63 100644
--- a/theme/templates/ebook/glossary.html
+++ b/theme/templates/ebook/glossary.html
@@ -1,4 +1,4 @@
-{% extends "./layout.html" %}
+{% extends "./page.html" %}
{% block title %}Glossary | {{ title }}{% endblock %}
diff --git a/theme/templates/ebook/page.html b/theme/templates/ebook/page.html
index 9ce7c1b..3af7970 100644
--- a/theme/templates/ebook/page.html
+++ b/theme/templates/ebook/page.html
@@ -3,14 +3,17 @@
{% block title %}{{ progress.current.title }} | {{ 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 %}
+ <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 %}
+ {% for style in styles %}
+ <link rel="stylesheet" href="{{ basePath }}/{{ style }}">
+ {% endfor %}
{% endblock %}
{% block content %}
diff --git a/theme/templates/ebook/summary.html b/theme/templates/ebook/summary.html
index dfbba2c..ab4b78f 100644
--- a/theme/templates/ebook/summary.html
+++ b/theme/templates/ebook/summary.html
@@ -1,18 +1,7 @@
-{% extends "./layout.html" %}
+{% extends "./page.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 %}
-
{% macro articles(_articles) %}
{% for item in _articles %}
{% set externalLink = item.path|isExternalLink %}