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