Sha256: 4c7aa8e52216501b29337f8a23404ca809504934a603b3e43324b0056e251933

Contents?: true

Size: 855 Bytes

Versions: 18

Compression:

Stored size: 855 Bytes

Contents

{% assign info    = page.type | prepend: '_' | append: '-info' %}
{% assign chap    = page.type | prepend: '_' | append: '-chapter' %}
{% assign weight  = page.type | prepend: '_' | append: '-weight' %}
{% assign chapter = page.chapter | replace: ' ','-' | downcase %}
{% assign bPath   = page.collection | prepend: '/svg/' %}
{% assign cPath   = chapter | append: '/icon.svg' %}
{% assign cWrap   = page.chapter | prepend: '<div>' | append: '</div>' %}
{% assign cDivs   = cWrap | split: ' ' | join: '</div><div>' %}

<div class="block {{ info }}">

  <h5 class="title {{ chap }}">
    {{ cDivs }}
  </h5>

  {%- if page.icon -%}

    <div class="block _page-icon {{ chapter | prepend: '--'}}">
      {% include {{ bPath }}/{{ cPath }} %}
    </div>

  {%- endif -%}

  <h5 class="title {{ weight }}">
    {{ page.weight | slice: 0,5 }}
  </h5>

</div>

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
futuro-0.4.6 _includes/html/page/info.liquid
futuro-0.4.5 _includes/html/page/info.liquid
futuro-0.4.4 _includes/html/page/info.liquid
futuro-0.4.3 _includes/html/page/info.liquid
futuro-0.4.2 _includes/html/page/info.liquid
futuro-0.4.1 _includes/html/page/info.liquid
futuro-0.4.0 _includes/html/page/info.liquid
futuro-0.3.9 _includes/html/page/info.liquid
futuro-0.3.8 _includes/html/page/info.liquid
futuro-0.3.7 _includes/html/page/info.liquid
futuro-0.3.6 _includes/html/page/info.liquid
futuro-0.3.5 _includes/html/page/info.liquid
futuro-0.3.4 _includes/html/page/info.liquid
futuro-0.3.3 _includes/html/page/info.liquid
futuro-0.3.2 _includes/html/page/info.liquid
futuro-0.3.1 _includes/html/page/info.liquid
futuro-0.3.0 _includes/html/page/info.liquid
futuro-0.2.9 _includes/html/page/info.liquid