Sha256: 1bb251e3b125354805cc99c926666dc11296bdb0c76da3c7fa7b954f5bf0eb79
Contents?: true
Size: 1.52 KB
Versions: 32
Compression:
Stored size: 1.52 KB
Contents
{% assign ScrollLength = 0 %} {%- for item in loop -%} {%- if item.type == 'chapter' -%} {% assign ScrollLength = ScrollLength | plus : 1 %} {%- endif -%} {%- endfor -%} {%- if ScrollLength > 1 -%} <div class="block scroller"> <ol class="list scrollers"> {% assign ScrollItem = 0 %} {%- for item in loop -%} {%- if item.type == 'chapter' -%} {% assign ScrollItem = ScrollItem | plus : 1 %} {% assign ItemChapter = item.chapter | replace : ' ','-' | append : '-' | downcase %} {% assign ItemTitle = item.title | replace : ' ','-' | downcase %} {% assign ItemID = ItemChapter | append : ItemTitle %} <li class="item scroller {{ ItemTitle }}"> <a href="{{ ItemID | prepend : '#' }}" class="link scroller"> {%- if ScrollItem == 1 -%} <svg version="1.1" width="20" height="14" viewBox="0 0 20 14"> <path d="M10,0l9,14H1L10,0z"/> </svg> {%- elsif ScrollItem == (ScrollLength -1) -%} <svg version="1.1" width="20" height="14" viewBox="0 0 20 14"> <path d="M10,14L1,0h18L10,14z"/> </svg> {%- else -%} <svg version="1.1" width="20" height="20" viewBox="0 0 20 20"> <circle cx="10" cy="10" r="9"/> </svg> {%- endif -%} </a> </li> {%- endif -%} {%- endfor -%} </ol> </div> {%- endif -%}
Version data entries
32 entries across 32 versions & 1 rubygems