Sha256: bff244d6416bd29d7faea12ef285a97ae348aca440669b6c9d59af3f70de0d84
Contents?: true
Size: 1.78 KB
Versions: 2
Compression:
Stored size: 1.78 KB
Contents
{% if item.type == "buttons" %} <div class="buttons {{ item.style }}"> {% for button in item.content %} {% assign link = button.link %} {% include util/prepend_link.html %} <a class="button {{ button.style }}" href="{{ link }}"> {% if button.icon %} <span class="icon {{ button.icon.style }}"> <i class="fa {{ button.icon.name }}"></i> </span> {% endif %} <span>{{ button.content | newline_to_br }}</span> </a> {% comment %} button {% endcomment %} {% endfor %} </div> {% comment %} buttons {% endcomment %} {% elsif item.type == "link" %} {% assign link = item.link %} {% include util/prepend_link.html %} <a class="{{ item.style }}" href="{{ link }}"> {% include util/item_content.html %} </a> {% elsif item.type == "image" %} {% if item.link %} {% assign link = item.link %} {% include util/prepend_link.html %} <a href="{{ link }}"> {% assign link = item.file %} {% include util/prepend_link.html %} <img class="{{ item.style }}" src="{{ link }}" alt="{{ item.name }}" width="{{ item.width }}" height="{{ item.height }}"></img> </a> {% else %} {% assign link = item.file %} {% include util/prepend_link.html %} <img class="{{ item.style }}" src="{{ link }}" alt="{{ item.name }}" width="{{ item.width }}" height="{{ item.height }}"></img> {% endif %} {% elsif item.type == "text" %} <p class="{{ item.style }}"> {% include util/item_content.html %} </p> {% elsif item.type == "icons" %} <span class="icon {{ item.style }}"> <span class="fa-stack"> {% for icon in item.content %} <i class="fa {{ icon.name }} {{ icon.style }}"></i> {% endfor %} </span> {% comment %} span {% endcomment %} </span> {% comment %} span {% endcomment %} {% endif %}
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vitrina-0.2.8 | _includes/util/items.html |
vitrina-0.2.6 | _includes/util/items.html |