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