Sha256: 318bdf139220fec0e82326caace41466c013e90454ec55a664920347082c1464

Contents?: true

Size: 983 Bytes

Versions: 6

Compression:

Stored size: 983 Bytes

Contents

{% assign chapter = page.chapter | replace: ' ','-' | downcase %}
{% assign pies = thing.pies %}
{% assign i = 0 %}

<ul class="list pies animate">

  {%- for item in pies -%}

  {% assign custom = item.title | replace: ' ','-' | downcase %}
  {% assign i = i | plus: 1 %}

    <li class="item pie {{ custom }}">

      <span class="title pie pcent">{{ item.val | append: '%' }}</span>

      <span class="block pie svg-wrap">

        <span class="block pie svg-bg">
          {%- include artwork/pie.svg -%}
        </span>

        <span class="block pie svg-data">
          {%- include artwork/{{ chapter }}/composition/{{ i | append: '.svg' }} -%}
        </span>

        {%- if item.val > 50 -%}
          <span class="block pie svg-data">
            {%- include artwork/{{ chapter }}/composition/{{ i | append: 'B.svg' }} -%}
          </span>
        {%- endif -%}

      </span>

      <span class="title pie">{{ item.title }}</span>

    </li>

  {%- endfor -%}

</ul>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
futuro-0.7.4 _includes/html/loop/artwork/book/pies.liquid
futuro-0.7.3 _includes/html/loop/artwork/book/pies.liquid
futuro-0.7.2 _includes/html/loop/artwork/book/pies.liquid
futuro-0.7.1 _includes/html/loop/artwork/book/pies.liquid
futuro-0.7.0 _includes/html/loop/artwork/book/pies.liquid
futuro-0.6.9 _includes/html/loop/artwork/book/pies.liquid