summaryrefslogtreecommitdiffstats
path: root/templates/includes/book/summary.html
blob: c119cd6109d365c192831e9bfcf2064236bdf4c9 (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
<div class="book-summary">
    <ul class="summary">
    <li>
        <a href="{{ basePath }}/README.html">Introduction</a>
    </li>
    <li>
        <a href="https://github.com/{{ githubAuthor }}" target="blank">About the author</a>
    </li>
    <li class="divider"></li>
    {% for item in summary.chapters %}
        <li>
            <a href="{{ basePath }}/{{ item.path }}">{{ item.title }}</a>
            {% if item.articles.length > 0 %}
            <ul class="articles">
            {% for article in item.articles %}
                <li {% if article._path == _input %}class="active"{% endif %}>
                    <a href="{{ basePath }}/{{ article.path }}">{{ article.title }}</a>
                </li>
            {% endfor %}
            </ul>
            {% endif %}
        </li>
    {% endfor %}
    </ul>
</div>