Sha256: 26a9c88c225f049aabd1c08b1b12a85c2baffcaff18fd24b63c9ac3fe854ba19

Contents?: true

Size: 1.68 KB

Versions: 3

Compression:

Stored size: 1.68 KB

Contents

{% assign layout=site.data.[include.data] %}
{% for section in layout.sections %}
{% capture isEven %}{% cycle 'false', 'true' %}{% endcapture %}

<div class="card columns">
{% if isEven == 'false' %}
<div class="card-image left">
    <figure class="image">
        <img src={{section.image}} alt="placeholder" class="left">
    </figure>
</div>
<div class="card-content">
    <h2 class="fas {{ section.icon }} fa-2x"><div>{{ section.title  }}</div></h2>
            {{ section.text | markdownify  }}
                
<a href="{{ section.link | relative_url }}" class="button is-rounded has-text-centert is-dark {% if item.link == page.url %}is-active{% endif %}">
    <span>{{ section.link_text }}</span>
    <span class="icon is-small">
    <i class="fas fa-chevron-right fa-xs"></i>
    </span>
</a>                    
</div>
{% else %}
<div class="card-content ">
    <div class="card-image right is-hidden-tablet">
        <figure class="image">
            <img src={{section.image}} alt="placeholder" class="left">
        </figure>
    </div>
    <h2 class="fas {{ section.icon }} fa-2x"><div>{{ section.title  }}</div></h2>
        {{ section.text | markdownify  }}
<a href="{{ section.link | relative_url }}" class="button is-rounded is-dark {% if item.link == page.url %}is-active{% endif %}">
    <span>{{ section.link_text }}</span>
    <span class="icon is-small">
    <i class="fas fa-chevron-right fa-xs"></i>
    </span>
</a>                    
</div>
<div class="card-image right is-hidden-mobile">
    <figure class="image">
        <img src={{section.image}} alt="placeholder" class="right">
    </figure>
</div>
{% endif %}                                
</div>
<div class="clear"></div>
{% endfor %}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
intia-theme-0.1.65 _includes/left-right-blocks.html
intia-theme-0.1.64 _includes/left-right-blocks.html
intia-theme-0.1.63 _includes/left-right-blocks.html