bf325e9bdfc1ae2c2dbf1d410b9c1f8fedb9480c
[src/app-framework-main.git] / docs / _layouts / ebook / page.html
1 {% extends "layout.html" %}
2
3 {% block title %}{{ page.title }}{% endblock %}
4 {% block description %}{{ page.description }}{% endblock %}
5
6 {% block style %}
7     {### Include theme css before plugins css ###}
8     {% if not fileExists(config.styles.print) %}
9         {% if options.format %}
10         <link rel="stylesheet" href="{{ (options.format + ".css")|resolveAsset }}">
11         {% else %}
12         <link rel="stylesheet" href="{{ "ebook.css"|resolveAsset }}">
13         {% endif %}
14     {% endif %}
15
16     {{ super() }}
17
18     {### Custom stylesheets for the book ###}
19
20     {% for type, style in config.styles %}
21         {% if fileExists(style) and (type == "ebook" or type == "print" or type == options.format) %}
22         <link rel="stylesheet" href="{{ style|resolveFile }}">
23         {% endif %}
24     {% endfor %}
25 {% endblock %}
26
27 {% block body %}
28 <div class="page">
29     {% block page %}
30         <h1 class="book-chapter book-chapter-{{ page.depth }}">{{ page.title }}</h1>
31         <div class="section">
32             {{ page.content|safe }}
33         </div>
34     {% endblock %}
35 </div>
36 {% endblock %}