Sha256: ee0edfe34f864d66e489282f0b6d5667421ca6aacbbaebb7ff2951cad44114fe

Contents?: true

Size: 1.13 KB

Versions: 20

Compression:

Stored size: 1.13 KB

Contents

<div class="wrap browse-chapter">

  <div class="title browse-chapter">Chapter</div>

  {% assign loop = site.collections | sort: 'weight' %}

  {% for item in loop %}

    {% if item.live %}

      {% assign loop = site[item.label] | sort: 'weight' %}

      {% assign ItemBook = item.label | replace : ' ','' | downcase %}

      <div class="block browse-book {{ ItemBook | prepend : 'book-' }}">

        {% for item in loop %}

          {% assign ItemBook    = item.collection | replace : ' ','-' | downcase %}
          {% assign ItemChapter = item.chapter    | replace : ' ','-' | downcase %}
          {% assign ItemUrl     = item.url        | replace : '/index.html','' %}
          {% assign ItemWeight  = item.weight     | slice : 0,3 %}

          {% if item.type == 'chapter' %}

            <a href="{{ ItemUrl }}" class="link browse-chapter {{ ItemChapter | prepend : 'chapter-' }}">
              {{ ItemWeight }} {% if SiteIsBook %}{{ item.chapter | truncate : 22 }}{% else %}{{ item.chapter | truncate : 13 }}{% endif %}
            </a>

          {% endif %}

        {% endfor %}

      </div>

    {% endif %}

  {% endfor %}

</div>

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
futuro-1.1.8 _includes/html/overlay/browse/chapter.liquid
futuro-1.1.7 _includes/html/overlay/browse/chapter.liquid
futuro-1.1.6 _includes/html/overlay/browse/chapter.liquid
futuro-1.1.5 _includes/html/overlay/browse/chapter.liquid
futuro-1.1.4 _includes/html/overlay/browse/chapter.liquid
futuro-1.1.3 _includes/html/overlay/browse/chapter.liquid
futuro-1.1.2 _includes/html/overlay/browse/chapter.liquid
futuro-1.1.1 _includes/html/overlay/browse/chapter.liquid
futuro-1.1.0 _includes/html/overlay/browse/chapter.liquid
futuro-1.0.9 _includes/html/overlay/browse/chapter.liquid
futuro-1.0.8 _includes/html/overlay/browse/chapter.liquid
futuro-1.0.7 _includes/html/overlay/browse/chapter.liquid
futuro-1.0.6 _includes/html/overlay/browse/chapter.liquid
futuro-1.0.5 _includes/html/overlay/browse/chapter.liquid
futuro-1.0.4 _includes/html/overlay/browse/chapter.liquid
futuro-1.0.3 _includes/html/overlay/browse/chapter.liquid
futuro-1.0.2 _includes/html/overlay/browse/chapter.liquid
futuro-1.0.1 _includes/html/overlay/browse/chapter.liquid
futuro-1.0.0 _includes/html/overlay/browse/chapter.liquid
futuro-0.9.9 _includes/html/overlay/browse/chapter.liquid