Sha256: db32819b35dcff2bca40157ead7467f03e7dfab39069f456d13af01fc414218a
Contents?: true
Size: 1.13 KB
Versions: 23
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
23 entries across 23 versions & 1 rubygems