mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-17 16:15:22 +00:00
35 lines
1.6 KiB
HTML
35 lines
1.6 KiB
HTML
{% extends "layout.html" %}
|
||
|
||
{% block title %}{{ progress.current.title }}{% parent %}{% endblock %}
|
||
{% block content %}
|
||
<div class="book" data-github="{{ githubId }}" data-level="{{ progress.current.level }}" data-basepath="{{ basePath }}" data-revision="{{ revision }}">
|
||
{% include "includes/book/header.html" %}
|
||
{% include "includes/book/summary.html" %}
|
||
<div class="book-body" tabindex="-1">
|
||
<div class="body-inner">
|
||
<div class="page-wrapper">
|
||
{% include "includes/book/progress.html" %}
|
||
|
||
<div class="page-inner">
|
||
{% for section in content %}
|
||
<section class="{{ section.type }}" id="section-{{ section.id }}">
|
||
{% if section.type == "normal" %}
|
||
{% autoescape false %}{{ section.content }}{% endautoescape %}
|
||
{% elif section.type == "exercise" %}
|
||
{% include "./includes/book/exercise.html" with {section: section} %}
|
||
{% endif %}
|
||
</section>
|
||
{% endfor %}
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
{% if progress.current.prev and progress.current.prev.path %}
|
||
<a href="{{ basePath }}/{{ progress.current.prev.path|mdLink }}" class="navigation navigation-prev"><i class="fa fa-angle-left"></i></a>
|
||
{% endif %}
|
||
{% if progress.current.next and progress.current.next.path %}
|
||
<a href="{{ basePath }}/{{ progress.current.next.path|mdLink }}" class="navigation navigation-next"><i class="fa fa-angle-right"></i></a>
|
||
{% endif %}
|
||
</div>
|
||
</div>
|
||
{% endblock %} |