wgtpkg-install: Force uninstall
[src/app-framework-main.git] / docs / _layouts / ebook / summary.html
1 {% extends "./page.html" %}
2
3 {% block title %}{{ "SUMMARY"|t }}{% endblock %}
4
5 {% macro articles(_articles) %}
6     {% for article in _articles %}
7         <li>
8             <span class="inner">
9                 {% if article.path or article.url %}
10                     {% if article.path %}
11                         <a href="{{ article.path|contentURL }}{{ article.anchor }}">{{ article.title }}</a>
12                     {% else %}
13                         <a target="_blank" href="{{ article.url }}">{{ article.title }}</a>
14                     {% endif %}
15                 {% else %}
16                     <span>{{ article.title }}</span>
17                 {% endif %}
18                 {% if 1 %}
19                 <span class="page">{{ article.level }}</span>
20                 {% endif %}
21             </span>
22             {% if article.articles.length > 0 %}
23             <ol>
24                 {{ articles(article.articles) }}
25             </ol>
26             {% endif %}
27         </li>
28     {% endfor %}
29 {% endmacro %}
30
31 {% block page %}
32 <div class="section toc">
33     <h1>{{ "SUMMARY"|t }}</h1>
34     <ol>
35         {% for part in summary.parts %}
36             {% if part.title %}
37             <li class="part-title">
38                 <h2>{{ part.title }}</h2>
39             </li>
40             {% endif %}
41             {{ articles(part.articles) }}
42
43             {% if not loop.last %}
44             <li class="divider"></li>
45             {% endif %}
46         {% endfor %}
47
48         {% if glossary.path %}
49         <li>
50             <span class="inner">
51                 <a href="{{ ('/' + glossary.path)|contentURL }}">{{ "GLOSSARY"|t }}</a>
52             </span>
53         </li>
54         {% endif %}
55     </ol>
56 </div>
57 {% endblock %}
58