<div class="reveal" id="reveal">
  <div class="slides">
    {% include hydeslides/revealjs/slide-open-chapter %}
      <h1 contenteditable>{% if page.deck_title %}{{page.deck_title}}{% else %}Welcome{% endif %}</h1>
      <div class="pseudoLink" contenteditable>https://training.github.com/kit</div>
    {% include hydeslides/revealjs/slide-close %}

    {% for ch in page.chapters %}
      <!--Capture the chapter index value-->
      {% assign chapterIndex = forloop.index0 %}

      <!--Nest all chapter's content. Chapters traverse left-right; Sections slide up-down-->
      <section>
        {% for section in site.tags[ch] reversed %}
          <!--Capture the slide index value-->
          {% assign slideIndex = forloop.index0 %}

          <!--Chapter Auto-Injection-->
          {% if forloop.first %}
            {% if section.cover != false %}
              {% include hydeslides/revealjs/slide-open-chapter %}
                <h2>{{ section.chapter }}</h2>
              {% include hydeslides/revealjs/slide-close %}
            {% endif %}
          {% endif %}

          {% include hydeslides/revealjs/slide-open %}
            {% include hydeslides/revealjs/title %}
            {% include hydeslides/revealjs/svg %}
            {{ section.content }}
          {% include hydeslides/revealjs/slide-close %}
        {% endfor %}
      </section>
    {% endfor %}
  </div>
</div>
