Files
gitbook/theme/templates/ebook/summary.html
T
2015-10-06 09:47:15 +02:00

42 lines
1.2 KiB
HTML

{% extends "./page.html" %}
{% block title %}{{ __("SUMMARY") }} | {{ title }}{% endblock %}
{% macro articles(_articles) %}
{% for item in _articles %}
<li>
<span class="inner">
<span class="page">{{ item.level }}</span>
{% if item.path and item.exists %}
{% if not item.external %}
<a href="{{ basePath }}/{{ item.path|contentLink }}">{{ item.title }}</a>
{% else %}
<a target="_blank" href="{{ item.path }}">{{ item.title }}</a>
{% endif %}
{% else %}
<span>{{ item.title }}</span>
{% endif %}
</span>
{% if item.articles.length > 0 %}
<ol>
{{ articles(item.articles) }}
</ol>
{% endif %}
</li>
{% endfor %}
{% endmacro %}
{% block content %}
<div class="page page-toc">
<h1>{{ __("SUMMARY") }}</h1>
<ol>
{{ articles(summary.chapters) }}
{% if glossary.length > 0 %}
<li><a href="{{ basePath }}/GLOSSARY.html">{{ __("GLOSSARY") }}</a></li>
{% endif %}
</ol>
</div>
{% endblock %}