Sha256: c9ebb42d6711d541e518e6ec49e783541063a990abd287e64c2ba6c3b861e788

Contents?: true

Size: 972 Bytes

Versions: 20

Compression:

Stored size: 972 Bytes

Contents

{% assign info    = page.type | append: '-info' %}
{% assign chap    = page.type | append: '-chapter' %}
{% assign weight  = page.type | append: '-weight' %}
{% assign chapter = page.chapter | replace: ' ','-' | downcase %}
{% assign bPath   = page.collection | prepend: '/artwork/' %}
{% 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 }} {{ chapter }}">
    {{ cDivs }}
  </h5>

  {%- if page.icon -%}

    <div class="block page-icon {{ chapter }}">

      {%- if site.setup.install == 'book' -%}
        {% include {{ cPath | prepend: '/artwork/' }} %}
      {%- else -%}
        {% include {{ bPath }}/{{ cPath }} %}
      {%- endif -%}

    </div>

  {%- endif -%}

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

</div>

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
futuro-0.7.4 _includes/html/page/info.liquid
futuro-0.7.3 _includes/html/page/info.liquid
futuro-0.7.2 _includes/html/page/info.liquid
futuro-0.7.1 _includes/html/page/info.liquid
futuro-0.7.0 _includes/html/page/info.liquid
futuro-0.6.9 _includes/html/page/info.liquid
futuro-0.6.8 _includes/html/page/info.liquid
futuro-0.6.7 _includes/html/page/info.liquid
futuro-0.6.6 _includes/html/page/info.liquid
futuro-0.6.5 _includes/html/page/info.liquid
futuro-0.6.4 _includes/html/page/info.liquid
futuro-0.6.3 _includes/html/page/info.liquid
futuro-0.6.2 _includes/html/page/info.liquid
futuro-0.6.1 _includes/html/page/info.liquid
futuro-0.6.0 _includes/html/page/info.liquid
futuro-0.5.9 _includes/html/page/info.liquid
futuro-0.5.8 _includes/html/page/info.liquid
futuro-0.5.7 _includes/html/page/info.liquid
futuro-0.5.6 _includes/html/page/info.liquid
futuro-0.5.5 _includes/html/page/info.liquid