Sha256: e87939997dfd6ca40f01a2728308f2c48a9fbce1b7cafd6bfa1da8aa7a1f5515

Contents?: true

Size: 822 Bytes

Versions: 7

Compression:

Stored size: 822 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: '/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 }} {{ chapter }}">
    {{ cDivs }}
  </h5>

  {%- if page.icon -%}

    <div class="block page-icon {{ chapter }}">
      {% include {{ bPath }}/{{ cPath }} %}
    </div>

  {%- endif -%}

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

</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
futuro-0.5.4 _includes/html/page/info.liquid
futuro-0.5.3 _includes/html/page/info.liquid
futuro-0.5.2 _includes/html/page/info.liquid
futuro-0.5.1 _includes/html/page/info.liquid
futuro-0.5.0 _includes/html/page/info.liquid
futuro-0.4.9 _includes/html/page/info.liquid
futuro-0.4.8 _includes/html/page/info.liquid